WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: aria-expanded menu or dialog?

for

From: Birkir R. Gunnarsson
Date: Mar 6, 2021 7:43PM


That sounds reasonable to me then. The trick is making sure the focus
order behaves like that of a regular navigation menu, even if the
visual presentation is changed.
If the overlay approach messes with the focus order then, yes, you
have to code it as a dialog.

On 3/6/21, glen walker < <EMAIL REMOVED> > wrote:
> 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.
>>
>>
>>
> > > > >


--
Work hard. Have fun. Make history.