Interface More detail B · Official guidance Platform: Web

Menu Button

A menu button opens a list of actions or choices. It tells software whether the menu is open.

Try an example
You might call it action menupopup menu trigger

Try an example

A real example

In a document editor, “Export” opens PDF, DOCX, and Markdown choices. Down Arrow opens the menu and focuses the first item; Escape closes it and returns focus. Choosing PDF starts one export, not a setting that stays on.

Main parts

  1. 01Trigger button
  2. 02Popup menu
  3. 03Menu items

Use it when

Use it for a small group of commands when showing every button would make the page crowded. Include the full menu keyboard behavior.

Do not use it when

Do not use menu roles for normal site links or for a form field that sends a value.

Name used in code

button aria-haspopup=menu aria-expanded + role=menu/menuitem

Before you ship

Move focus on purpose. Keep it inside only when the overlay blocks the page. Support Escape and a visible close button, then return focus to the opener. Keep entered data and check small-screen, loading, and failure states.

Request you can copy

Outcome: Use Menu Button to solve this user need without losing the current context. User context: In a document editor, “Export” opens PDF, DOCX, and Markdown choices. Down Arrow opens the menu and focuses the first item; Escape closes it and returns focus. Choosing PDF starts one export, not a setting that stays on. Recommended pattern: Menu Button. Why it fits: Use it for a small group of commands when showing every button would make the page crowded. Include the full menu keyboard behavior. Do not use it when: Do not use menu roles for normal site links or for a form field that sends a value. Product requirements: Define the default, loading, empty, error, success, and recovery states. Keep user input. Give clear feedback after every action. Accessibility and resilience: Use semantic HTML, full keyboard access, and visible focus. Make the layout work when zoomed and support reduced motion. Follow the project’s current rules. Do not add a new UI library unless the project already uses it. Acceptance criteria: The main task works with keyboard only and at 320px width. Focus and status changes are announced. Check loading, failure, retry, cancel, and reduced-motion paths. Evidence and limits (evidence boundary): It is official for that source. Other platforms or teams may use the term in another way. Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.

Check this request

Review the current use of Menu Button. Definition: A menu button opens a list of actions or choices. It tells software whether the menu is open. Release checks: Move focus on purpose. Keep it inside only when the overlay blocks the page. Support Escape and a visible close button, then return focus to the opener. Keep entered data and check small-screen, loading, and failure states. Before changing code, report the evidence you found, gaps, severity, and the smallest safe fix.

B
How official is this term?

Official guidance

The named platform, framework, project, or expert group has an official guide for this term.

It is official for that source. Other platforms or teams may use the term in another way.

Scope
Non-normative WAI-ARIA Authoring Practices pattern
Document status
stable
Checked on
2026-07-30

Evidence sources & scope

Authority source + Term reference · W3C WAI · stable Menu Button Pattern Scope: Accessible web widgets Role here: Direct term reference Source covers: canonical name, definition, interaction, keyboard behavior, accessibility

Copy it yourself

The browser could not copy this. Select the request below and copy it yourself.