Select your language
Select other languages

Automatic translation

Loading translator…

Magoomake your components work correctlyBack to homepage

Menu

Brings navigation options or actions together in an organized, predictable structure.

For working examples and design patterns for this component, see the references tab (opens the references on this page).

COMPONENT GUIDE

Explore behaviors before defining the interface.

Always consider the context of the application, even when the guidance follows a standard pattern. Interaction design documents intent. Behavior must be verified in the implementation.

When to use

Use to group navigation destinations or actions predictably.

What to design

Show items, submenus when present, expanded or collapsed states, and visible focus.

How it behaves

In ordinary navigation, Tab traverses links and buttons. In ARIA action menus, arrow navigation navigate items; Esc closes and returns focus to the trigger. Context menus also need keyboard and touch access.

What to document in Figma

Distinguish navigation, action menus, and context menus. Record the keyboard pattern, opening, closing, the action target, and focus after commands.

How to review

Check whether the purpose and states are clear on small and large screens and with zoom. Verify documented behavior in the implementation, including keyboard and screen reader use where applicable.

Full guidance

Interaction Design

Questions to ask when designing components of type Menu.

Important:
Depending on the context in which you build your components, there may be further questions, and some listed here may not be necessary. Assess each case individually.

Designing for "no interaction"

Designing for mouse use (any pointing device)

Designing for gesture use

Designing for keyboard use (any non-pointing device)

Designing for screen reader use

Editorial extension — interaction patterns and decisions

Magoo editorial adaptation: extends the previous guidance with design, documentation, and review decisions. References support the adaptation; these scenarios do not represent executed tests or certification.

Navigation, actions, and context

In ordinary site navigation, links lead to destinations and buttons show or hide groups of links. Preserve Tab and Shift + Tab navigation and identify the current page. A dropdown appearance does not require role="menu".

An action menu groups commands such as Edit or Duplicate. If adopting the ARIA menu pattern, document opening, initial focus, navigation with arrow navigation, activation, and exit. Do not apply the ordinary navigation rule of traversing every item with Tab to this pattern.

A context menu presents actions for an identified item. Provide an accessible button such as Actions for Monthly report in addition to any secondary click or long press. Document the keyboard shortcut when available and make the action target clear.

What to design and document

Show the trigger, expanded, collapsed, focus, unavailable items, and submenus when present. Separate the destination link from the group expansion button when both are needed. Do not rely only on hover or an unnamed icon.

In an ARIA action menu, Enter or Space on the button opens the menu and focuses the first item; arrow navigation navigate items. Esc closes it and returns focus to the trigger. Tab leaves the menu rather than traversing every item. Submenus also require documenting entry, exit, and return to the parent item.

After an action, direct focus according to the outcome: for example, to an opened dialog or a nearby control if the original item is removed. On small screens, retain all actions and keep the menu within the visible area.

Design and implementation review

In the design, check that destinations, commands, and context are recognizable. In the implementation, verify the chosen pattern, names, expansion state, focus sequence, and closing with keyboards, touch, and screen readers. Hidden controls must not remain in the focus sequence.

Scope: the basic methods below describe ordinary site navigation. For ARIA action menus and context menus, see the focus and keyboard differences in the editorial extension of the Interaction design tab.

Interaction Methods

Possible interaction methods for components of type Menu.

Important:
Only the main methods are listed here. Custom components require further study.

Mouse interaction (any pointing device)

Keyboard interaction (any non-pointing device)

Keyboard (or gesture) interaction + screen reader

Gherkin

BDD (Behavior-Driven Development) methodology focusing on three pillars: User Stories, Acceptance Criteria, and Gherkin Syntax (Given, When, Then).

Scenario: Given that I am on a page containing a navigation menu

Keyboard navigation

Screen reader on desktop

Screen reader on mobile devices

Additional scenarios — editorial extension

Ordinary navigation: open a group

Action menu: open, navigate, and cancel

Context menu without a secondary click

Considerations

Considerations for components of type Menu.

Implementation notes and behavior decisions

  • Use nav for navigation menus.
  • Use lists when grouping links.
  • Use aria-expanded on submenu triggers.
  • Avoid applying role="menu" to ordinary website navigation.

References

Additional references for components of type Menu.

Important:
Most references are on the course platform alongside the lessons cited in this material.

Disclaimer:
The links listed here are a curated collection of references where you can find implemented components, rather than recommendations. There is no unified implementation format and no guarantee that these links follow every design pattern. Direct questions to the teams responsible for the linked materials. Before copying a model, remember that all materials are constantly updated and that patterns, particularly proprietary ones, may change.

Design patterns

Design System

Editorial extension references

W3C APG — Disclosure navigation (external link, opens in a new tab)

W3C APG — Menu button (external link, opens in a new tab)

W3C APG — Menu and menubar (external link, opens in a new tab)

Original content by Marcelo Sales, initially used in the AccessBoost course (external link - opens in a new window). These interactions represent standard industry patterns, but may be customized in specific cases, provided there are sufficient instructions for people to understand the behavioral change.