WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Menu functionality

for

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

From: Kakarla Meharoon
Date: Fri, Dec 21 2018 4:32AM
Subject: Menu functionality
No previous message | Next message →

Hi,

I have menu with some list of items, i am using anchor tag as a button by
using role="button" and aria-haspopup="true" and aria-expanded="true/false"
(updating dynamically). But JAWS is not identifying it is expanded or
collapsed.<a aria-haspopup="true" aria-expanded="false" role="button"
href="#" aria-label="Search" accesskey="1">

From: Brian Lovely
Date: Fri, Dec 21 2018 6:56AM
Subject: Re: [External Sender] Menu functionality
← Previous message | Next message →

Kakarla, it's kind of a moot point, since when the menu opens focus will be
placed on the first menu item (proving the menu's "expansion"). Since the
anchor has aria-haspopup, the eventual appearance of the menu is implied.

On Fri, Dec 21, 2018 at 6:32 AM Kakarla Meharoon < = EMAIL ADDRESS REMOVED = >
wrote:

> Hi,
>
> I have menu with some list of items, i am using anchor tag as a button by
> using role="button" and aria-haspopup="true" and aria-expanded="true/false"
> (updating dynamically). But JAWS is not identifying it is expanded or
> collapsed.<a aria-haspopup="true" aria-expanded="false" role="button"
> href="#" aria-label="Search" accesskey="1">
> > > https://urldefense.proofpoint.com/v2/url?u=http-3A__list.webaim.org_&d=DwICAg&c=pLULRYW__RtkwsQUPxJVDGboCTdgji3AcHNJU0BpTJE&r=nA3L5qBjLdo-DJ8qQBz88lq5Xb3jw-WFZTeJjcwjLdE&m=Qx1FlP2KaWPhLusc7jiSrf0WFsa1kY5N2vl9-BlwScw&s=vSK_TuJ0m2fjM1oIWn85yRUdvNUy-Omzf76go11FS1E&e=
> List archives at
> https://urldefense.proofpoint.com/v2/url?u=http-3A__webaim.org_discussion_archives&d=DwICAg&c=pLULRYW__RtkwsQUPxJVDGboCTdgji3AcHNJU0BpTJE&r=nA3L5qBjLdo-DJ8qQBz88lq5Xb3jw-WFZTeJjcwjLdE&m=Qx1FlP2KaWPhLusc7jiSrf0WFsa1kY5N2vl9-BlwScw&s=pnyHNYTBMI2WGn2M5aLhIM-Vnv47HkOXUKCGTzcwhkc&e=
> >


--
*Brian Lovely*
Digital Accessibility
804.389.1064

The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.

From: Mark Magennis
Date: Fri, Jan 04 2019 3:15AM
Subject: Re: [External Sender] Menu functionality
← Previous message | No next message

Focus will only be placed on the first menu item if you programmatically place it there. It is equally valid from a UI perspective to leave focus on the menu button.

But in both cases, Brian's other point, that the aria-haspopup value implies the appearance of the menu, is still valid. Except that it's more correct to say that it implies the appearance of "something that may be a menu" because there is a general lack of support among browser/screen reader combinations for the various explanatory values of aria-haspopup - aria-haspopup="menu", aria-haspopup="dialog", etc.

Mark

Mark Magennis
Skillsoft | mobile: +353 87 60 60 162
Accessibility Specialist