WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: aria-expanded menu or dialog?

for

From: glen walker
Date: Mar 6, 2021 2:04PM


That's why this one is bugging me. It acts like a regular list of links
like a navigation submenu so that's how I'd like it coded, but when they
changed it to cover the entire page, it kind of became a dialog.

My gut feeling is leave the menu behavior and when you tab off the last
item in the menu, have it dismiss and move to the next focusable element on
the page. That's what it did before the change.

And yes, aria-expanded is updated appropriately.


On Sat, Mar 6, 2021 at 1:16 PM Birkir R. Gunnarsson <
<EMAIL REMOVED> > wrote:

> What happens when you tab away from the last link in the menu?
> Does focus go to the next focusable item on the page or does it go
> somewhere else?
> I'd say if focus goes to the next focusable item on the page, this can
> be presented as a menu. If the menu automatically closes, it's ok (as
> long as the aria-expanded attribute of the menu trigger is set
> appropriately).
> If entering the menu messes with the natural focus order on the page
> it's more likely to be some sort of a dialog.
>
>
>