Resonance Logo

Dropdown

A dropdown menu reveals a list of actions or links when a trigger button is activated, with full keyboard navigation and focus management.

Demo

Activate the dropdown trigger button using a mouse click or by pressing Enter or Space. Once the menu is open, navigate between items with the Down Arrow and Up Arrow keys. Press Home to jump to the first item or End to jump to the last. Select an item with Enter, or dismiss the menu without selecting by pressing Escape.

Select a city

Use Arrow keys to move, Enter/Space to select, Escape to close.

What to Observe

Anatomy

[Anatomy image placeholder — will be added when assets are available]

  1. Trigger button — The button that opens and closes the menu; carries aria-expanded and aria-haspopup="menu" to signal its behavior.
  2. Menu container — The list element with role="menu" that wraps all menu items.
  3. Menu items — Individual interactive elements with role="menuitem" (or menuitemcheckbox / menuitemradio for stateful variants).
  4. Dividers — Optional separators with role="separator" that group related menu items visually and semantically.
  5. Menu item icons — Optional decorative icons accompanying item labels; must be hidden from assistive technology if the label already describes the action.

Accessibility Behavior

Common Mistakes

Why This Matters

Dropdown menus are used for navigation, user account actions, sorting controls, and context menus across nearly every application. When the keyboard interaction model is missing or wrong — particularly the arrow-key navigation pattern — users who cannot use a mouse are effectively locked out of entire sections of functionality. The menu pattern has well-established conventions that users of assistive technology have learned to rely on, and deviating from them without reason creates unpredictable, frustrating experiences.

Accessibility Validation

This component is validated against internal accessibility criteria aligned with WCAG standards, using our internally developed system, Resonance Specs.

To learn more, please contact us.

Code

Reference Implementation