givepulse / knowbilitywarriors

Web Accessibility Website work for Accessible Housing Austin
0 stars 1 forks source link

Priority1: Menu Q37 Charu (lost 15) Jim (lost 15) Menu had role of group - needed role of menubar with menu-items #80

Open christosptr opened 10 years ago

christosptr commented 10 years ago

Menu had role of group - needed role of menubar with menu-items

christosptr commented 10 years ago

Jim's comments: The drop down menu items fit this description, though I didn't like those in a menu. The ARIA role for the menu should be menubar and the items should be menuitem.

georgeluc commented 10 years ago

Very interesting.. was digging into the code and was debating if i should hack this in when...

comments address this?

The accessible mega menu models its use of WAI-ARIA Roles, States, and Properties after those described in the {@link http://www.w3.org/TR/wai-aria-practices/#menu|WAI-ARIA Menu or Menu bar (widget) design pattern} with some notable exceptions, so that it behaves better with screen reader user expectations for global navigation. We don't use role="menu" for the menu container and role="menuitem" for each of the links therein, because if we do, assistive technology will no longer interpret the links as links, but instead, as menu items, and the links in our global navigation will no longer show up when a screen reader user executes a shortcut command to bring up a list of links in the page.

georgeluc commented 10 years ago

For now I've changed group role to be menubar.