-
-
Notifications
You must be signed in to change notification settings - Fork 446
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
keyboard accessibility of https://reactcommunity.org/react-tabs/ #479
Comments
for the focus indicator issue at least, suggest adding some |
having played around with this some more, it seems |
Hey Patrick, thanks for the research! Kudos for posting a video with your issue. Is this something you'd like to create a PR for? I'm not sure if it's just an issue with the docs; it could be that the library itself has some issues with focus management (it's one of the more complex pieces of code in this repo if I recall correctly). |
the first part (focus being swallowed by the textarea that's been extended to be a full code highlighted/editor, and the textarea also receiving focus even when not visible) is definitely an issue with the docs/demo. the lack of focus indication, on the other hand, seems to be fundamentally a react-tabs problem. I can have a look at both, but can't make promises on when/if I manage to crack those two problems. we'll see... |
had another closer look, and purely for the demo/example, the issue of the code editor swallowing the fact that the code editor is focusable even when not shown is due to the styles used to hide the editor only visually hiding, rather than fully using as for the focus indication, i can propose something in a PR. however, my initial idea of using |
currently, there are two quite fundamental keyboard access issues on the demo page at https://reactcommunity.org/react-tabs/
<textarea>
containing the source swallowsTab
presses. once focus is in the textarea, there's no way for a keyboard user to jump back out. worse, even if the related "view source" checkbox is not checked, i.e. the textarea isn't visible, it still receives keyboard focus/is still in the regular tab cycleVideo showing the issue (using Chrome on Windows)
react-tabs-kbd.mp4
0:00 - 0:25 tabbing through the page. note the focus disappears after the "View source" checkbox. ticking the checkbox with the mouse, and carrying on tabbing, shows that tab was in the textarea (and it's stuck in there)
0:25 - 0:32 focus is on the tab/tablist, can use cursor keys to change active tab. but there's no visible indication that focus is indeed on that tab/tablist
The text was updated successfully, but these errors were encountered: