Dropdown

Ready

The use of dropdowns has its advantages but it depends on the screen support. Dropdowns are a standard widget, so the users know how to interact with them. The options available in a dropdown component are static, preventing erroneous data entered by the user since it only shows a range of correct values for that input.

Specifications

Dropdown component specifications
Dropdown component specifications

States

States: Enabled, hover, focus, active and disabled.

Example of the dropdown component states
Example of the dropdown component states

Option list

States: Enabled, hover, focus and selected.

Example of the option list states
Example of the option list states

Design tokens

Color

TokenValue
backgroundColor#FFFFFF
fontColor#000000
dropdownBackgroundColor#FFFFFF
dropdownFontColor#000000
hoverBackgroundOption#F2F2F2
hoverBackgroundColor#F2F2F2
scrollBarThumbColor#666666
scrollBarTrackColor#D9D9D9
focusColor#005FCC

Width

TokenValue
small60px
medium (default)240px
large480px
fitContent-
fillParent-

Margin

TokenValue
xxsmall6px
xsmall16px
small24px
medium36px
large48px
xlarge64px
xxlarge100px

Padding

PropertyElementValue
padding-leftDropdown button16px
padding-leftOptions list16px
padding-rightDropdown button16px
padding-rightOptions list16px

Border

PropertyElementCore tokenValue
border-widthDropdown buttonborder-width-00
border-styleDropdown buttonborder-style-nonenone
border-radiusDropdown buttonborder-radius-medium0.25rem / 4px
border-widthOptions listborder-width-00
border-styleOptions listborder-style-nonenone
border-radiusOptions listborder-radius-medium0.25rem / 4px
border-widthFocus outlineborder-width-22px
border-styleFocus outlineborder-style-solidsolid
border-radiusFocus outlineborder-radius-medium0.25rem / 4px

Typography

PropertyElementValue
font-sizeDropdown button1rem / 16px
font-sizeList item1rem / 16px
font-weightDropdown button400
font-weightList item400

Iconography

PropertyElementValue
height / widthCaret24 / 24px
height / widthCustom icon20 / 20px

Accessibility

WCAG 2.2

WAI-ARIA 1.2