Skip to content

Menu: use aria-haspopup and change usage pattern for aria-expanded #20898

Description

@ling1726

Based on feedback from @adamsamec

Environment Information

  • Package version(s): 9

Actual behavior:

Currently MenuTrigger only applies aria-expanded="true" and aria-expanded="false". when open and closed respectively

Expected behavior:

MenuTrigger should always apply aria-haspopup="menu"

MenuTrigger should apply only aria-expanded="true" when a root trigger opens a menu. Submenu triggers should apply both aria-expanded="true" and aria-expanded="false"

Documentation describing expected behavior

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions