-
Notifications
You must be signed in to change notification settings - Fork 779
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
aria-required-children violation for tablist role #3915
Comments
I noticed a similar structure recommended here #2415 |
Thanks for the issue. It looks like the reason it is failing is because the second |
Thank you! |
@straker could you please provide a reference for where it's specified that all children of a I am aware that there's work underway to clarify required roles in w3c/aria#1033, but as far as I understand, the current language doesn't disallow the tablist from containing children/descendants with other roles.
From ARIA 1.1 tab section
Concretely, sometimes our tabs render with an icon and a tooltip rather than plain text. Our tooltips are in the DOM next to the element that they're related to, which in this instance means inside the element with role tablist. |
Product
axe-core
Question
I'm trying to figure out why the following HTML structure is giving me a
aria-required-children
violation.I tried moving the
tab
role to theli
but then I get thenested-interactive
violation which is to be expected. I also tried adding thearia-owns
attribute to theul
. I'm not sure what the actual issue.Here is a screenshot of the violation.
sn-canvas-tabs
is the parent element and is a custom web component.The text was updated successfully, but these errors were encountered: