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
fix(multiple): fix VoiceOver confused by Select/Autocomplete's ARIA semantics (#26861)
For Select and Autcomplete components, fix issues where VoiceOver was confused
by the ARIA semantics of the combobox. Fix multiple behaviors:
- Fix VoiceOver focus ring stuck on the combobox while navigating
options.
- Fix VoiceOver would sometimes reading option as a TextNode and not
communicating the selected state and position in set.
- Fix VoiceOver "flickering" behavior where VoiceOver would display one
announcement then quickly change to another annoucement.
Fix the same issues for both Select and Autocomplete component.
Implement fix by correcting the combobox element and also invidual
options.
First, move the aria-owns reference to the overlay from the child of the
combobox to the parent modal of the comobobx. Having an aria-owns
reference inside the combobox element seemed to confuse VoiceOver.
Second, apply `aria-hidden="true"` to the ripple element and pseudo
checkboxes on mat-option. These DOM nodes are only used for visual
purposes, so it is most appropriate to remove them from the
accessibility tree. This seemed to make VoiceOver's behavior more
consistent.
Fix#23202Fix#19798
0 commit comments