-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(data-table): make persistent search bar keyboard accessible #6574
Conversation
Deploy preview for carbon-elements ready! Built with commit 41cf276 |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit 41cf276 https://deploy-preview-6574--carbon-components-react.netlify.app |
Thanks for taking the time to contribute a fix! I'm noticing a small issue, however. In the original issue, I do see the problem in the second search bar with In this PR, it now works for |
@tw15egan True, didn't notice that earlier. Should be fixed now! 👍 |
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.
Thanks for fixing that 🙏 👍 ✅
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.
Thank you so much for taking care of this 🏄
Closes #6573
When using
persistent
prop onTableToolbarSearch
component, the search bar was not keyboard accessible since its tabindex was set to-1
.Changelog
Changed
tabindex
as well as input'saria-hidden
based onexpanded || persistent
instead ofexpanded
inTableToolbarSearch
Testing / Reviewing
defaultExpanded
topersistent
inwith-batch-actions.js
story. Search bar should be in tab order now. For previous behaviour, refer to the code sandbox in the linked issue or changein
TableToolbarSearch.js
withSearch bar shouldn't be in the tab order anymore then.