-
Notifications
You must be signed in to change notification settings - Fork 127
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
Group as allowed acc child of role menu if acc child of menuitem #2438
Comments
@giacomo-petri to test it and provide evidence |
If you need testing on AT you don't have, hit me up. |
Discussed in today's ARIA meeting: https://www.w3.org/2025/02/20-aria-minutes#56b0 |
I've revisited the issue I previously opened and have some important observations to add. As mentioned earlier,
My initial focus was on the
Here, the role group has a menuitem as an accessibility child, which seems to be allowed per the specs (or at least not prohibited). However, when testing the code above, the structure becomes unclear, as the relationships between elements are not well-defined. IMO the intent of the spec seems to be that role group should contain only menuitem, menuitemradio, or menuitemcheckbox. If the intent is different and broader usage is intended, the group role should specify what additional elements are allowed when it is an accessibility child of menu, rather than allowing everything. Going back to my original point, the Additionally, when considering this topic from the child-parent relationship perspective (rather than the parent-child perspective), the specs state that a menu item can only have a group as its parent if:
So while the menu role spec does not explicitly prohibit group > menuitem + group:has(> menuitem) where the last group has a child menuitem, the menuitem role does. |
Discussed at https://www.w3.org/2025/03/13-aria-minutes.html#e815 |
Describe your concern
Per ARIA specs, the role="menu" accepts group as acc child only if one of the following is true:
but it's unclear whether a group containing another group (group > (or with generic intervening) group) is acceptable. As written, it appears to be allowed as long as the parent group has at least one accessible child menuitem, but I'm not sure if that was the intended meaning.
The text was updated successfully, but these errors were encountered: