react-select
react-select copied to clipboard
Accessibility: no way to clear the selection with a keyboard
Caveat: I'm not an accessibility expert so perhaps there is an alternative mechanism available to clear selections. But the usual way (tabbing to the clear button) is not working.
Reproduction Steps
- open NVDA
- visit https://react-select.com/
- tab to any select example that has a selected item and that is clearable (at the time of this writing the first example satisfies these conditions)
- tab again
Expected Behavior
I would expect Step 4 to focus the "X" that clears the selected option.
Actual Behavior
You can't focus the clear button.
Proposed Solution
Make the clear div
a button
tag.
Am I Willing To Submit A PR For This?
Yes, absolutely. The company I work for has budget for fixing a11y issues in the open source libraries we use or that we are considering using.