Dropdown Menu
A menu that allows users to choose an action from a list. It's always paired with a button to trigger the menu.
Page sections
Type
Default
Usage
Overview
Menu trigger
Menu items
Behavior
Width
Menu’s width is based on its content, but still adheres to a minimum and maximum width.
Scrolling
The menu will scroll after six items.
Avoiding viewport collisions
The menu will display above its trigger to avoid colliding with the viewport.
Visual style
Content strategy
The overall content goal of Dropdown Menu is to surface a menu of actions that users can choose from quickly and confidently. Context and clarity are key factors in helping set expectations for the chosen action.
Casing
Because Dropdown Menu options are actions, apply the same style you’d use for Button or links.
Character count
The surrounding page sets the stage, so Dropdown Menu options can be short and sweet. If a longer option is necessary, the component can accommodate multiple lines.
Consistency
The surrounding page sets the stage, so Dropdown Menu options can be short and sweet. If a longer option is necessary, the component can accommodate multiple lines.
Accessibility
Characteristics
- Manually triggered stateless menu
- Utilizing links or buttons for action
- Completes an action based on a user’s selection
Keyboard/focus expectations
- Popup button receives focus
- Enter and Spacebar open/close the menu
- Tab or arrow keys to move down the menu list
- Enter to select a menu item
- Escape or tab to end of the list to exit the menu
Screen reader expectations*
- “{Button Name}, collapsed, popup button”
- Once opened: “{Button Name}, expanded, popup button”
- Menu opened: “Menu, choose an item, {Total Number of Items}”
- Each item within the menu: “{Label Name}, menu item, index #”
- For menus using links: “Link, Menu Item, {Label Name}”
*Note: This is a general experience expectation, but there are variations in how assistive technology responds on certain browser and screen readers.