-
Notifications
You must be signed in to change notification settings - Fork 933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding button wrapper for icon #970
adding button wrapper for icon #970
Conversation
Can you please include this PR in next release? @gabrielliwerant |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always nice to improve accessibility, thanks for looking into this!
We should use IconButton
instead of button
here, as that keeps us in line with material standards and the look of the icon that we had before.
There's also an opportunity here to add a onKeyDown
handler for activation via the enter key. If you wanted to add that, I would be happy to accept it, or I can provide that functionality separately myself, it's up to you.
I would be glad to work on this. I think pressing space or enter on focused element triggers onClick event by default. In our case, row will be expanded or collapsed. Do we need onKeyDown handler there? |
You are correct, it looks like the default is to trigger on space and enter. Ok, so let's just switch it to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful! Thank you for the update.
* adding button wrapper for icon * changing button ot IconButton, disable button form HeaderCell
* adding button wrapper for icon * changing button ot IconButton, disable button form HeaderCell
I want to improve accessbility of expandable rows in #969