-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
Ideally custom select components should behave as closely as possible to a native <select> to allow users of assistive technology to interact with them in the way they're used to. There are some differences between this component and a native select that are likely to cause accessibility issues, for example:
- The label exposed via
aria-labelisn't the same as the visual label above the input. The visual label should be duplicated inaria-labeland the placeholder should probably be inaria-description - The dropdown expands automatically if you use the tab key to navigate to it. A native select would only expand on certain keyboard events (see the WAI example below)
- Previous dropdowns stay open when using the tab key to navigate to the next one:

- The options dropdown itself is focusable. Focus should remain on the parent.
- Navigating the results list with arrow keys and a screen reader results in the screen reader reading 'blank' for each option, meaning the user won't know what they're selecting
There's a good coded up example of a custom editable selector at https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-autocomplete-list/. If you'd like to test the component with a screen reader, NVDA is free and widely used
markjamesardens and TotomInc
Metadata
Metadata
Assignees
Labels
No labels