-
Notifications
You must be signed in to change notification settings - Fork 125
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
Nested menus vs. required owned elements #1425
Comments
coming in late, but as this just bubbled up in a discussion: yes, it would be good to clarify (even if it's just in prose) what the story with nested menus is. an initial skim over the spec seems to suggest that a |
Yes, I was discussing with Patrick and Adrian on the a11y slack channel about this issue. To me it seems that the wording of the 5.2.6 Allowed Accessibility Child Roles does not allow a
and that the |
Does this means that nested menus have to be achieved with the group role to declare submenus? Is it sementically ok to use group role instead of menu role for submenus? |
No. If I understand it correctly, submenus are implemented with role=menu (nested in the parent menu). role=group is not for submenu, but for a grouping within a menu (see https://www.w3.org/WAI/ARIA/apg/patterns/menubar/examples/menubar-editor/ - submenu "Size" uses role=group for menuitemradios "X-Small" to "X-Large") |
This is related to #1033 in that it may or may not be an issue, depending on the interpretation of "required owned elements" :D.
I'd just like to suggest a clarification on the menu role, specifically around nested dropdown menus. Right now, the structure of required owned elements / required context role suggests the following structure:
The problem is that often nested dropdown menus end up creating a role structure where
menu
is a child of a parentmenu
ormenubar
(or sometimes even placed undermenuitem
). Even if this is technically allowed under a permissive reading of "required owned elements", I think it'd be useful to clarify where the nestedmenu
should go.A practical example of this is in the APG menu examples, where the dropdown
menu
is a child ofmenubar
: https://w3c.github.io/aria-practices/examples/menubar/menubar-editor.htmlThe text was updated successfully, but these errors were encountered: