-
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(multiselect): remove aria-selected prop #6440
fix(multiselect): remove aria-selected prop #6440
Conversation
@dakahn would this problem also affect filterable multi-select by any chance? |
@joshblack It looks like we weren't setting this prop on filterable-multiselect. |
Deploy preview for carbon-elements ready! Built with commit 06c04ed |
Deploy preview for carbon-components-react ready! Built with commit 06c04ed https://deploy-preview-6440--carbon-components-react.netlify.app |
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.
LGTM 👍 ✅
Deploy preview for carbon-elements ready! Built with commit 881b0bf |
Deploy preview for carbon-components-react ready! Built with commit e5aa31a https://deploy-preview-6440--carbon-components-react.netlify.app |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit 881b0bf https://deploy-preview-6440--carbon-components-react.netlify.app |
ref #6411
Downshift follows (the sort of weird) WAI-ARIA spec for listboxes and sets
aria-selected="true"
for any highlighted items. We were setting this ourselves and breaking this functionality. This removes us setting that prop and let's Downshift handle this for us 👍to test
Open up Multiselect, pop open the listbox with the dev tools inspector open and see the
aria-selected
value change fromtrue
tofalse
on mouse hover for any list item