-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[Select] Implement WAI-ARIA dropdown without label #16739
Conversation
@@ -264,11 +265,11 @@ const SelectInput = React.forwardRef(function SelectInput(props, ref) { | |||
)} | |||
ref={displayRef} | |||
data-mui-test="SelectDisplay" | |||
aria-pressed={open ? 'true' : 'false'} |
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.
aria-pressed
is for toggle buttons:
aria-pressed="false" | a | Identifies the button as a toggle button.Indicates the toggle button is not pressed.
aria-pressed="true" | a | Identifies the button as a toggle button.Indicates the toggle button is pressed.
-- https://www.w3.org/TR/wai-aria-practices/examples/button/button.html
6bffe39
to
1b0a7ef
Compare
Details of bundle changes.Comparing: 4d8206d...1b0a7ef
|
Does the change solve any of the open accessibility issues with the Select component? |
Good point. Should improve what screen reader announces by removing the misleading |
Fixes part of #16409
Implements https://www.w3.org/TR/wai-aria-practices/examples/listbox/listbox-collapsible.html
Labeling logic isn't included since this requires a broader scope. I think this might be fully implementable within the
TextField
. Maybe with a separate component. Shouldn't block this change though.