You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, the select's children should have that role. Ideally all the options are direct children and in the DOM, but our current design does not consider this.
We do have an open issue to rework the select with accessibility in mind - check out #11083 for details. I'll close this in favor of keeping one issue related to select's a11y but thanks for reporting the issue
Reproduction
View source of any mat-select example:
https://material.angular.io/components/select/examples
Steps to reproduce:
Expected Behavior
mat-select has role=listbox, so its children should have role=option
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listbox_role#Description
Actual Behavior
mat-select children do not have role=option
Environment
Other notes
This was caught by running the accessibility developer tools audit.
The text was updated successfully, but these errors were encountered: