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
{{ message }}
Repository navigation
Commit 9d83502
Browse filesBrowse the repository at this point in the historyBrowse files
Make dropdowns accessible to screen readers (combobox ARIA pattern) (#13542)
* Make dropdowns accessible to screen readers
The dropdown text input used role="listbox", an invalid ARIA role for
a text field, and had no aria-activedescendant. Screen readers got
contradictory semantics and never announced options during keyboard
navigation, so the list could not be used.
Switch the input to the WAI-ARIA combobox pattern: role="combobox",
aria-activedescendant pointing at the active option while the list is
open, and aria-autocomplete describing the filter behavior. The popup
(ul role="listbox", li role="option") was already correct. Apply the
same fix to the multiselect variant, which had no combobox semantics
at all, and pass it a listbox_id so its options have stable ids.
Update the unit test that asserted the old listbox role and the e2e
specs that located the input by that role.
* add changeset
---------
Co-authored-by: gradio-pr-bot <[email protected]>
0 commit comments