-
-
Notifications
You must be signed in to change notification settings - Fork 30
Elements with the "tablist" interactive role must be focusable #416
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
Comments
oh yeah, I think you are correct, if I'm not mistaken aria recommends the tabpanel to be focusable, but I guess the tablist is not really a concern, right? I will take a look at this :D |
@vhoyer As I understand it's recommended to move focus into the |
I think I get it, the thing is that a
So I guess it's kind of a gray area whether we have them focusable or not, because I guess it depends on the implementation, that said, non of the example provided by the wai aria practices have the I was also checking the implementation of the jsx library, and the implementation there is the same here. As a workaround I guess you could add a reference: EDIT: And the spec is always referring to the use mostly in vanilla, so I guess it's neither broken, nor correct. as @jessebeach mentioned on a similar issue on the jsx counterpart of this library:
reference: Conclusion/TL;DR:This is an edge case, I don't think I will add a PR for this, but feel free to yourself. I don't think this is completely wrong and I don't think it's completely correct. For now, you may add |
@vhoyer thanks for investigating. It does seem pretty unclear, so I'll just use a workaround for now. P.S. Is it possible to configure the rule to skip certain roles? It doesn't appear so from the documentation. |
BTW I just realized that I only get this warning when I add a handler for certain events, such as "key<up|down|press>" and "click", to the element with the "tablist" role. It works for my use case because the event bubbles from child elements that are focusable. |
oh, in that case the rule is doing it's job correctly, and you should skip this instance where to you this is not completely relevant, or add the |
Hello, I think the
interactive-supports-focus
rule is being applied incorrectly to the "tablist" role. According to the ARIA spec, while child elements with the "tab" role should be focusable, there is no indication that the containing "tablist" element must be focusable.The text was updated successfully, but these errors were encountered: