Skip to content

MatMenu aria-label is not cleared from dummy element #21152

Closed
@jelbourn

Description

@jelbourn

<mat-menu> is a dummy element whose content is extracted and rendered into an overlay. We forward aria-label to the real menu, but we currently don't clear this label from the dummy element, leading to it being ready by screen-readers. We should do one of:

  • Clear the forwarded attributes
  • Add aria-hidden
  • Just completely remove the dummy element from the DOM

Until this is fixed, people can work around the issue by using a binding, e.g. [aria-label]="'Settings menu'"

Metadata

Metadata

Assignees

Labels

AccessibilityThis issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/menu

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions