WebAIM - Web Accessibility In Mind

E-mail List Archives

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

for

From: Patrick H. Lauke
Date: Nov 15, 2023 9:58AM


On 15/11/2023 16:55, Mark Magennis wrote:
> 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.

Indeed, I'd suggest this is some outdated advice in the APG pattern, or
that it's not been fully thought through.

P
--
Patrick H. Lauke

https://www.splintered.co.uk/ | https://github.com/patrickhlauke
https://flickr.com/photos/redux/ | https://www.deviantart.com/redux
https://mastodon.social/@patrick_h_lauke | skype: patrick_h_lauke