WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: What's the point of aria-expanded on a menu button?

for

From: Bryan Garaventa
Date: Nov 15, 2023 7:14PM


Hi,
Typically it's not that useful to have aria-expanded on a standalone menu button, but it is, however, very useful on a menu item within a menu.

The value isn't necessarily with keyboard navigable screen readers like JAWS and NVDA, but rather with touch-based screen readers like VoiceOver on iOS. You can try this out here: https://whatsock.com/Templates/Menus/Internal/index.htm

The expanded state is announced so that the submenu list hierarchy is clear during touch navigation.

All the best,
Bryan