w3c / aria-practices

WAI-ARIA Authoring Practices Guide (APG)
https://www.w3.org/wai/aria/apg/
Other
1.2k stars 325 forks source link

What has focus when using aria-activedescendant with a menubar? #658

Open katiehockman opened 6 years ago

katiehockman commented 6 years ago

The authoring practices for menubar indicates that "The menu container has tabindex set to -1 or 0 and aria-activedescendant set to the ID of the focused item." But what is the menu container in this case? Is it the menubar, or the menuitem children within the menubar? Based on a sentence in the Notes section, it sounds like the menu container would be the menuitems, rather than the menubar: "When items in a menubar are arranged vertically and items in menu containers are arranged horizontally...." However, isn't the purpose of using aria-activedescendant so you don't have to manually move focus within a widget? If the menu container was the menuitem in the menubar, then both browser focus and aria-activedescendant would need to change when navigating different menus in the menubar. Could this be clarified so it is clear what is intended to have browser focus when using aria-activedescendant? https://www.w3.org/TR/wai-aria-practices/#menu

mcking65 commented 6 years ago

@katiehockman, agree, you want it on the menubar. We can clarify this.