Skip to content

Commit

Permalink
docs(material/menu): require only static content and MenuItems in pop…
Browse files Browse the repository at this point in the history
…up (#27435)

Update a11y documentation for MatMenu. REquest that MatMenu should not
contain interactive controls, aside from MatMenuItem.

Add clarification for the supported configurations of MatMenu. A common
accessibility mistake is to nest interactive controls inside of a menu
popup.

Addresses #27426

(cherry picked from commit cb66d4f)
  • Loading branch information
zarend committed Jul 11, 2023
1 parent 2ed7a64 commit 26623e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/material/menu/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,5 @@ Angular Material does not support the `menuitemcheckbox` or `menuitemradio` role

Always provide an accessible label via `aria-label` or `aria-labelledby` for any menu
triggers or menu items without descriptive text content.

MatMenu should not contain any interactive controls aside from MatMenuItem.

0 comments on commit 26623e2

Please sign in to comment.