Slider

Slider control allows users to select a specific value or a range of values from a set. Usually, slider presents a relatively large dataset and the way that the user interacts with it is helpful to explore the multiple options swiftly.

Specifications

Slider design specifications
Slider design specifications

States

The slider component has the following states: enabled, hover, focus, active and disabled.

Slider states
Slider states

Anatomy

Slider anatomy
  1. 1.
    Label
  2. 2.
    Helper text
  3. 3.
    Floor label (Optional)
  4. 4.
    Total line
  5. 5.
    Ceil label (Optional)
  6. 6.
    Value input (Optional)
  7. 7.
    Tick
  8. 8.
    Thumb
  9. 9.
    Track line

Design tokens

Color

Component tokenElementCore tokenValue
labelFontColorLabelcolor-black#000000
disabledLabelFontColorLabel:disabledcolor-grey-500#999999
helperTextFontColorHelper textcolor-black#000000
disabledhelperTextFontColorHelper text:disabledcolor-grey-500#999999
thumbBackgroundColorThumbcolor-blue-800#0067b3
hoverThumbBackgroundColorThumb:hovercolor-blue-900#003c66
focusThumbBackgroundColorThumb:focuscolor-blue-600#0095ff
activeThumbBackgroundColorThumb:activecolor-blue-900#003c66
disabledThumbBackgroundColorThumb:disabledcolor-grey-500#999999
tickBackgroundColorTickcolor-blue-800#0067b3
disabledTickBackgroundColorTick:disabledcolor-grey-500#999999
trackLineColorTrack linecolor-blue-800#0067b3
disabledTrackLineColorTrack line:disabledcolor-blue-500#999999
totalLineColorTotal linecolor-grey-200#e6e6e6
disabledTotalLineColorTotal line:disabledcolor-grey-100#f2f2f2
limitValuesFontColorCeil/Floor labelcolor-black#000000
disabledLimitValuesFontColorCeil/Floor labelcolor-grey-500#999999
focusColorFocus indicatorcolor-blue-600#0095ff

Typography

Component tokenElementCore tokenValue
fontFamilyLabelfont-family'Open Sans', sans-serif
fontSizeLabelfont-scale-020.875rem / 14px
fontStyleLabelfont-style-normalnormal
fontWeightLabelfont-weight-semibold600
lineHeightLabelfont-leading-loose-011.715em
fontFamilyHelper textfont-family'Open Sans', sans-serif
fontSizeHelper textfont-scale-010.75rem / 12px
fontStyleHelper textfont-style-normalnormal
fontWeightHelper textfont-weight-regular400
lineHeightHelper textfont-leading-normal1.5em
limitValuesFontFamilyCeil/Floor labelfont-family'Open Sans', sans-serif
limitValuesFontSizeCeil/Floor labelfont-scale-031rem / 16px
limitValuesFontStyleCeil/Floor labelfont-style-normalnormal
limitValuesFontWeightCeil/Floor labelfont-weight-regular400
fontFamilyFloor/Ceil labelfont-family-sans'Open Sans', sans-serif
fontSizeFloor/Ceil labelfont-scale-031rem / 16px
fontWeightFloor/Ceil labelfont-weight-regular400
fontStyleFloor/Ceil labelfont-style-normalnormal

Spacing

PropertyElementCore tokenValue
margin-leftFloor labelspacing-161rem / 16px
margin-rightCeil labelspacing-161rem / 16px
margin-leftInputspacing-322rem / 32px

Size

PropertyElementCore tokenValue
heightTotal line-2px
heightTrack line-2px
heightThumb-12px
widthThumb-12px
heightThumb:hover*-14px
widthThumb:hover-14px
heightTick-4px
widthTick-4px

[*] The thumb element size is 14x14px in the following states: :hover and :active.

Border

PropertyElementCore tokenValue
border-widthTrack lineborder-width-00
border-styleTrack lineborder-style-nonenone
border-radiusTrack lineborder-radius-full9999px
border-widthThumbborder-width-00
border-styleThumbborder-style-nonenone
border-radiusThumbborder-radius-full9999px
outlineFocus indicator-auto 1px
outline-offsetFocus indicator-2px

Accessibility

WCAG

WAI-ARIA