RE: Is it okay to apply "menubar" role, ... etc and related keyboard shortcuts to the main navigation?

Usually <ul> and <li> elements in a WYSIWYG editor (role="application") will be given ARIA roles "menubar", "menuitem", and "menu", and attributes such as aria-haspopup="true". The application will also be applied some keyboard shortcuts. Here is an demonstration: http://oaa-accessibility.org/example/25/

Although these ARIA roles, attributes, and keyboard shortcuts are usually applied to applications such as a WYSIWYG editor, they might be equally useful when being applied to the main navigation (which has popup sub menus) of a website.

However, I'm not sure if applying the above mentioned roles, attributes, and keyboard shortcuts to the main navigation (role="navigation") will cause confusions or problems to assistive technologies or not. And so far I haven't seen any website do this to its main navigation.

Will it be a benefit or a problem when doing this to the main navigation?


Regards,
Ian
[Joe Chidzik]
Hi Ian, the IBM site uses this approach on the main navigation menu. As a sighted user, I find it beneficial to be able to arrow through menus, rather than tab linearly through a long chain of links. In addition, I found the menu easy to navigate using the JAWS screenreader as well; it was announced as a toolbar, with the links below announced as menu items. Testing with NVDA just caused the main menu items to be read out as "buttons", and the menu items as "links", but it was still quite usable - though less intuitively so.

The only issue with this is that using the arrow keys can represent non-standard, or unexpected behaviour for users. Steve Faulkner responded to a query I had on this topic, and said "A possible method to overcome the unfamiliarity is to provide pseudo tooltip [2] that is displayed when the first item receives focus. this can be used to include brief instructions to the user such as "use arrow keys to navigate" or some such." - you can read the thread at http://webaim.org/discussion/mail_message?id=20720

Cheers
Joe

Received on Tuesday, 3 July 2012 12:59:47 UTC