[Autocomplete] Suggestions cannot be found using iOS VoiceOver swipe gesture #18191
Closed
2 tasks done
Labels
accessibility
a11y
component: autocomplete
This is the name of the generic UI component, not the React module!
Current Behavior 😯
Equipment
Suggestions in the listbox are very difficult to find when using iOS VoiceOver + Safari.
When swiping forward from the text field or the combobox, VoiceOver skips over the listbox altogether and moves past it to the next content on the page.
Focus on textfield...
... then focus on background elements after swiping forward:
To find the suggestions, the user must explore-by-touch and search the screen – which they might not know they should try.
The issue appears to be
aria-owns
not working properly in iOS VoiceOver+Safari, in combination with the listbox portal being placed at the end of the DOM. As a result the listbox is separated from the input field for the user.The problem does not exist with Talkback on Android, where aria-owns has better support.
Expected Behavior 🤔
Refer to the Authoring Practices example (https://www.w3.org/TR/wai-aria-practices/examples/combobox/aria1.1pattern/listbox-combo.html), where the listbox is placed as a sibling to the Combobox. In this configuration, I can find the suggestions as expected by swiping forward from the input field, even without
aria-owns
.Steps to Reproduce 🕹
Steps:
Context 🔦
This same problem exists in many popular implementations of the WAI-ARIA 1.1 pattern. This includes Downshift (see issue 779), ReachUI (see issue #284) and React Autosuggest.
One implementation that does not have the problem is Vue Autosuggest. There are probably others as well.
I have tried to find out if Apple has plans to improve
aria-owns
support in the future, but haven't been able to find any info.In the mean time, perhaps it is possible to modify the source order of the component to mimic the WAI-ARIA example?
Your Environment 🌎
The text was updated successfully, but these errors were encountered: