WebAIM - Web Accessibility In Mind

E-mail List Archives

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

for

From: Mark Magennis
Date: Nov 15, 2023 9:55AM


Something I've been scratching my head about. Is there any good reason why a button that opens a menu should have aria-expanded? I know it's in the Aria Authoring Practices design pattern for Menu, but what's the point? If the menu is open the button isn't reachable, so the aria-expanded value of true will never be exposed to AT. And if the menu is closed then it's not needed because you know the menu is closed, otherwise you'd be in it.

Mark