-
Notifications
You must be signed in to change notification settings - Fork 99
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
feat(List): improve a11y #960
Conversation
Preview is ready. |
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.
Do we actually need this logic if we use List selection api?
In the List component, any type of selection (single or multiple) is represented with orange highlighting. In the Select component, single selection is also displayed as orange highlighting, while multiple selection is indicated by a checkbox icon. As a result, in the Select component, we disable the styles used for selection in the List and apply our custom styles. All the logic related to the selected option is also contained within the Select component. We pass the indexes of the selected options to the List to correctly set the aria-selected attribute. So, this logic is still required. |
Closes #686