Skip to content
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

Merged
merged 3 commits into from
Jul 10, 2020

Conversation

dakahn
Copy link
Contributor

@dakahn dakahn commented Jul 10, 2020

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 from true to false on mouse hover for any list item

@joshblack
Copy link
Contributor

joshblack commented Jul 10, 2020

@dakahn would this problem also affect filterable multi-select by any chance?

@dakahn
Copy link
Contributor Author

dakahn commented Jul 10, 2020

@joshblack It looks like we weren't setting this prop on filterable-multiselect.

@netlify
Copy link

netlify bot commented Jul 10, 2020

Deploy preview for carbon-elements ready!

Built with commit 06c04ed

https://deploy-preview-6440--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Jul 10, 2020

Deploy preview for carbon-components-react ready!

Built with commit 06c04ed

https://deploy-preview-6440--carbon-components-react.netlify.app

Copy link
Collaborator

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 ✅

@netlify
Copy link

netlify bot commented Jul 10, 2020

Deploy preview for carbon-elements ready!

Built with commit 881b0bf

https://deploy-preview-6440--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Jul 10, 2020

Deploy preview for carbon-components-react ready!

Built with commit e5aa31a

https://deploy-preview-6440--carbon-components-react.netlify.app

@kodiakhq kodiakhq bot merged commit 2692813 into carbon-design-system:master Jul 10, 2020
@netlify
Copy link

netlify bot commented Jul 10, 2020

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit 881b0bf

https://deploy-preview-6440--carbon-components-react.netlify.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants