Skip to content

[Menu] Item lacks aria-expanded before first submenu open #2666

@DanielleRameau

Description

@DanielleRameau

Provide a general summary of the issue here

Description:
In the submenu variant of the menu component, the menu item that triggers the submenu does not have the aria-expanded attribute before the submenu is opened for the first time. As a result, screen reader users are not informed that the menu item has a submenu. The aria-expanded attribute only appears after the submenu has been opened once.

Expected behavior:
The menu item that triggers a submenu should always have the aria-expanded attribute, set to false by default, so that assistive technologies can announce the presence of a submenu before it is opened.

Link to finding: #2574 (comment)

👤 Your name

DR

🧢 Your Product/Team

SLDS

Metadata

Metadata

Assignees

Type

Projects

Status

✈️ Released

Relationships

None yet

Development

No branches or pull requests

Issue actions