Skip to main content

Color

Inputs come in two different colors. The default input color is $field-01 and is used on $ui-01 page backgrounds. The light version input color is $field-02 and is used on $ui-02 page backgrounds.

ClassPropertySCSSHEX
.bx--dropdownbackground-color$field-01#f4f7fb
.bx--dropdown
.bx--multi-select
.bx--combo-box
.bx--list-box
box-shadow$ui-055a6872
.bx--dropdown--lightbackground-color$field-02#ffffff
.bx--dropdown-listbackground-color$ui-01#ffffff
.bx--dropdown-textcolor$text-01#152935
.bx--dropdown-text::placeholdercolor$text-03#cdd1d4
.bx--dropdown-link:hover
.bx--dropdown-link:focus
background-color$hover-row#5596e6 at 10% opacity
.bx--dropdown__arrowfill$brand-01#3d70b2
.bx--list-box__selection--multibackground-color$brand-01#3d70b2

Dropdown example with $field-01 and $field-02 Example of Dropdowns with $field-02 (left) and $field-01 (right)

States

ClassPropertySCSSHEX
.bx--form-requirementcolor$support-01#e0182d
.bx--dropdown--open:focus
.bx--list-box__field:focus
box-shadow$brand-01#3d70b2
.bx--select-input[data-invalid]box-shadow$support-01#e0182d

Active: Placeholder text should remain when the user clicks into the text input and gets a cursor. Once the user starts typing the hint text is replaced with the user input text.s

Help text: Help text appears below the label when the input is active. Help text remains visible while the input is focused and disappears after focus away.

Error: Error messages appear below the input field and are always present while invalid.

Disabled: Disabled state appears at 50% opacity and has a .not-allowed cursor on hover.

Typography

All Dropdown text should be set in sentence case, with only the first word in a phrase and any proper nouns capitalized. Dropdown options should not exceed three words.

ClassFont-sizeFont-weightType style
.bx--dropdown-text14 / 0.875Semi-bold / 600.bx--type-zeta
.bx--dropdown-link14 / 0.875Normal / 400-
.bx--list-box__label14 / 0.875Semi-bold / 600.bx--type-zeta
.bx--form-requirement12 / 0.75Normal / 400.bx--type-caption

Layer

ClassLayer, ElevationBox-shadow
.bx--dropdown--open:focus
.bx--dropdown-list
Overlay, 80 4px 8px 0 rgba(0,0,0,0.10);

Structure

Dropdowns have two states, open and closed. An open and closed Dropdown should be the same width and appropriately fit the design, layout, and content. The height of a closed Dropdown stays consistent while the height of an open Dropdown will vary based on the amount of options it has. Please note the various color differences for closed and open Dropdowns.

ClassPropertypx / remSpacing tokens
.bx--dropdownheight40 / 2.5-
.bx--dropdown-textpadding-left16 / 1$spacing-md
.bx--dropdown-textpadding-right40 / 2.5$spacing-2xl
.bx--dropdown-textpadding-top, padding-bottom13 / 0.8125-
.bx--dropdownbox-shadow1px-
.bx--dropdown:focusbox-shadow2px-

Structure and spacing for a closed dropdown Structure and spacing measurements for Dropdown | px / rem

Normal, active, open, and disabled states for Dropdown Normal, active, open, and disabled states for Dropdown

Multi-Select Dropdown

ClassPropertypx / remSpacing tokens
.bx--list-box__menu-itemheight40 / 2.5-
.bx--list-box__fieldpadding-left, padding-right16 / 1$spacing-md
.bx--checkbox-labelpadding-left4 / 0.25$spacing-2xs
.bx--list-box__menu-iconpadding-left, padding-right16 / 1$spacing-md
.bx--list-box__selection--multiheight18 / 1.125-
.bx--list-box__selection--multimargin-right10 / 0.625-

Structure and spacing for a Multi-Select Dropdown Structure and spacing measurements for a Multi-Select Dropdown | px / rem

Inline Dropdown

ClassPropertypx / remSpacing token
.bx--list-box.bx--list-box--inlineheight32 / 2-
.bx--list-box__menu-itemheight40 / 2.5-
.bx--list-box__menu-itempadding-right, padding-left16 / 1$spacing-md
.bx--checkbox-labelpadding-left4 / 0.25$spacing-2xs
.bx--list-box__menu-iconpadding-right12 / 0.75$spacing-sm
.bx--list-box__menu-iconpadding-right10 / 0.625-
.bx--checkbox-label::beforeheight18 / 1.125-

Structure and spacing for Inline Dropdown Structure and spacing for Inline Dropdown | px / rem

Inline Dropdown states

Inline select has two different states, one for mouse hover and one for keyboard focus.

Hover and focus states for Inline Dropdown

Filtering

Filtering can be used with Dropdown and Multi-select Dropdown but not Inline Dropdown.

ClassPropertypx / remSpacing token
.bx--list-box__selectionheight40 / 2.5-
.bx--list-box__selection svgheight10 / 0.625-
.bx--list-box__menu-iconpadding-left, padding-right16 / 1$spacing-md
.bx--list-box__selectionpadding-left, padding-right16 / 1$spacing-md
.bx--list-box__selection--multiheight18 / 1.125-

Spacing for Multi-select Dropdown with Filtering Spacing for Multi-select Dropdown with Filtering | px / rem

Interation states for Multi-select Dropdown with Filtering Interaction states for Multi-select Dropdown with Filtering | px / rem