react-spectrum
react-spectrum copied to clipboard
Allow disabled items to be focused
🙋 Feature Request
I am using useLink and useButton hooks from react-aria, but I've noticed that if those are disabled, element doesn't get focus. According to this thread on stackexachange:
If disabled buttons are not focusable with TAB, our user would occasionally miss that the button ever exists, and they will never find it.
So I'd like to be able to enable focus on disabled elements like links or buttons.
🔦 Context
There are situations when a screenreader user wouldn't know about a UI element which is disabled.
💻 Examples
Disabled button is not focusable: https://react-spectrum.adobe.com/react-aria/useButton.html