Dropdown

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 design specifications
Dropdown design specifications

States

Dropdown button

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

Dropdown button states
Dropdown button states

Option list

States: Enabled, hover, focus and selected.

Option list states
Option list states

Design tokens

Color

Component TokenElementCore tokenValue
buttonBackgroundColorButtoncolor-white#ffffff
buttonFontColorButtoncolor-black#000000
hoverButtonBackgroundColorButton:hovercolor-grey-100#f2f2f2
activeButtonBackgroundColorButton:activecolor-grey-300#cccccc
buttonIconColorIconcolor-black#000000
disabledColorButton font:disabledcolor-grey-500#999999
disabledButtonBackgroundColorButton:disabledcolor-transparenttransparent
optionBackgroundColorOptioncolor-white#ffffff
hoverOptionBackgroundColorOption:hovercolor-grey-100#f2f2f2
activeOptionBackgroundColorOption:activecolor-grey-300#cccccc
scrollBarThumbColorScroll thumbcolor-grey-700#666666
scrollBarTrackColorScroll trackcolor-grey-300#cccccc
focusColorFocuscolor-blue-600#0095ff

Width

WidthValue
small60px
medium240px
large480px
fitContent-
fillParent-

Margin

MarginValue
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