Dropdowns

A contextual list of options or actions to take

UsageOverview

Dropdowns are typically used for navigation and contextual menus where the items intended do not fit in the available space.


AnatomyWriting & Tone

Elements
  1. Control + trigger
  2. Container for the menu items

Allow a minimum leading (line-height) of 44px (active area) for each row and minimum padding of 16px on each side.

Drop shadow: 8 dpi


BehaviorTrigger & dismissal

A dropdown list is displayed by a button control. Collapsing of the dropdown list can be achieved by pressing on the same button control, selecting a dropdown list item, or clicking outside of the overall dropdown container.

Keyboard navigation
Key Function
Enter If the focus is on the button, expands the dropdown list and places the focus on the currently selected option in the dropdown listIf the focus is on a dropdown list option, it collapses the dropdown list and keeps the currently selected option
Escape If the dropdown list is displayed, collapses the dropdown list and moves focus to the button
Down arrow Moves focus to and selects the next option in the dropdown listIf the dropdown list is collapsed, also expands the list
Up arrow Moves focus to and selects the previous option in the dropdown listIf the dropdown list is collapsed, also expands the list

Best PracticesAccessibility

Resources


Feedback

We would like to get your feedback. Tell us how you use this component in your projects and how we can improve it.

StyleBasic

With Icons

HTML/CSS v2Basic
With Icons
Contextual Menu
Nested Context