-
Notifications
You must be signed in to change notification settings - Fork 1.8k
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to set tabIndex -1 to implement Roving tabindex pattern #2046
Comments
Show me how you can't already do this. |
This still works https://codesandbox.io/s/snowy-morning-fwke7 You only need tabIndex |
Add a press handler: https://codesandbox.io/s/snowy-morning-fwke7?file=/src/App.js |
We can make |
"Don't assume that all focus changes will come via key and mouse events." From this document "https://developer.mozilla.org/en-US/docs/Web/Accessibility/Keyboard-navigable_JavaScript_widgets" |
I agree. No focusable, no tabindex. Focusable true, tabindex 0. Focusable false, tabindex -1. |
Thank you. After all those years (three), I can finally use The roving tabIndex pattern in RNfW without hacks. |
Is your feature request related to a problem? Please describe.
Roving tabindex is the basic accessiblity pattern for grouped focusable items.
Describe a solution you'd like
RNfW should provide API for that so users don't have to hack it with setNativeProps in useEffect which can be too late.
Describe alternatives you've considered
There is no alternative for that.
Additional context
Here is an example https://codesandbox.io/s/gallant-germain-ujqnm?file=/src/App.js
The text was updated successfully, but these errors were encountered: