WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Question on NVDA behaviour when reading menu items

for

Number of posts in this thread: 6 (In chronological order)

From: Geetha Shamanna
Date: Fri, Jul 02 2021 4:46AM
Subject: Question on NVDA behaviour when reading menu items
No previous message | Next message →

Hello all,

I am currently testing a page on which there are several menu items. On expanding one of the menus, NVDA reads 'Menu menu menu item Submit a meter reading', for example. What could be causing NVDA to repeat the word menu three times? It does this with other menu items on the page as well.

Many thanks.
Geetha

From: Mark Magennis
Date: Fri, Jul 02 2021 4:57AM
Subject: Re: [EXTERNAL] Question on NVDA behaviour when reading menu items
← Previous message | Next message →

Can you post the code?

From: Steve Green
Date: Fri, Jul 02 2021 5:03AM
Subject: Re: Question on NVDA behaviour when reading menu items
← Previous message | Next message →

It sounds like one of the elements probably has role="menu", but that alone wouldn't cause what you hear. You may find that one or more elements has aria-label="menu" too.

My experience is that when role="menu" is present, it is invariably implemented incorrectly in numerous ways. I suggest you compare the coding with the ARIA design pattern.

Steve Green
Managing Director
Test Partners Ltd


From: Birkir R. Gunnarsson
Date: Fri, Jul 02 2021 5:15AM
Subject: Re: Question on NVDA behaviour when reading menu items
← Previous message | Next message →

The trigger element definitely has an aria-haspopup attribute (with
any value), NVDA will announce "menu submenu" when it encounters it.
If you, on top of that use role="menuitem" on the trigger or even
role="menu" on its container, you get additional "menu" announcements.
And, yes, definitely down to an incorrect menu pattern.
If these are navigational menus this pattern shouldn't be used at all,
justuse a standard button + <na> element with a list of links.


On 7/2/21, Steve Green < = EMAIL ADDRESS REMOVED = > wrote:
> It sounds like one of the elements probably has role="menu", but that alone
> wouldn't cause what you hear. You may find that one or more elements has
> aria-label="menu" too.
>
> My experience is that when role="menu" is present, it is invariably
> implemented incorrectly in numerous ways. I suggest you compare the coding
> with the ARIA design pattern.
>
> Steve Green
> Managing Director
> Test Partners Ltd
>
>
>

From: Geetha Shamanna
Date: Fri, Jul 02 2021 7:29AM
Subject: Re: Question on NVDA behaviour when reading menu items
← Previous message | Next message →

Thank you, this is very useful.

Geetha

From: glen walker
Date: Fri, Jul 02 2021 9:23AM
Subject: Re: Question on NVDA behaviour when reading menu items
← Previous message | No next message

One final thing to check, on Chrome, if you have a title attribute, it will
be appended to the accessible name (Firefox doesn't do that) even though
technically if an accessible name property is found before the title
attribute, then the title should be ignored.

See step 2i - https://www.w3.org/TR/accname-1.1/#step2

So if you have something like

<div role="menu" aria-haspopup="true" title="menu">menu</div>

then you'll probably hear "menu" repeated several times.