Sliders

Sliders enable the selection of a single value, or a range of values, by manipulating handles along a linear scale.

Coded Components

Helper classes: Looking for a complete list of helper classes for these components?View helper classes

Redlines: We don't include redline comps because it's always more accurate to use developer tools to inspect the coded components, or a plugin such as the Prism Redline Tool.

Horizontal Single Handle Slider

<div class="dds__slider dds__d-flex dds__flex-column dds__h-100 dds__position-relative" data-toggle="dds__slider"> <div class="dds__slider-container dds__d-flex"> <div class="dds__slider-wrapper dds__d-block dds__w-100 dds__h-100"> <div class="dds__slider-target dds__position-relative"></div> </div> </div>
</div>

Horizontal Double Handle Slider

<div class="dds__slider dds__d-flex dds__flex-column dds__h-100 dds__position-relative" data-toggle="dds__slider"> <div class="dds__slider-container dds__d-flex"> <div class="dds__slider-wrapper dds__d-block dds__w-100 dds__h-100"> <div class="dds__slider-target dds__position-relative"></div> </div> </div>
</div>

Vertical Single Handle Slider

<div style="height: 300px"> <div class="dds__slider dds__d-flex dds__flex-column dds__h-100 dds__position-relative" data-toggle="dds__slider"> <div class="dds__slider-container dds__d-flex"> <div class="dds__slider-wrapper dds__d-block dds__w-100 dds__h-100"> <div class="dds__slider-target dds__position-relative"></div> </div> </div>
</div> </div>

Vertical Double Handle Slider

<div style="height: 300px; width: 50px;"> <div class="dds__slider dds__d-flex dds__flex-column dds__h-100 dds__position-relative" data-toggle="dds__slider"> <div class="dds__slider-container dds__d-flex"> <div class="dds__slider-wrapper dds__d-block dds__w-100 dds__h-100"> <div class="dds__slider-target dds__position-relative"></div> </div> </div>
</div> </div>

No items found.

No items found.

No items found.

Usage

A label must appear preceding every slider. Values depicted in the label do not update as the slider is manipulated, to remain consistent with all other component labels.

Sliders default to a horizontal orientation to leverage the landscape orientation of most screens.

The current value is persistent and updates as the user interacts with a handle:

  • For a standard slider with a single handle, the current value updates at the right end of the slider.
  • For a double handle slider that defines a range, the current lower value updates at the left end of the slider and the current upper value updates at the right end.

The current value is also displayed as a tooltip above a handle while it's being manipulated.

When the slider has two handles, they are unable to pass one another or move close enough to equal the same value.

The default step value = 1 for a slider. This causes its handle to move smoothly along the linear scale by stepping one value at a time.

  • To create a slider with handle(s) that snap to preset values (e.g. 10, 20, 30, etc.), increase the slider's step value.

Vertical Orientation

Sliders may also be vertically oriented:

  • The lower value of the range is on the bottom and the upper value is on the top.
  • The tooltip appears to the left of a handle if there's room, otherwise to the right.

Keyboard Interaction

  • Right Arrow: Increase the value of the slider by one step.
  • Up Arrow: Increase the value of the slider by one step.
  • Left Arrow: Decrease the value of the slider by one step.
  • Down Arrow: Decrease the value of the slider by one step.
  • Home: Set the slider to the first allowed value in its range.
  • End: Set the slider to the last allowed value in its range.
  • Page Up (Optional): Increment the slider by an amount larger than the step change made by Up Arrow.
  • Page Down (Optional): Decrement the slider by an amount larger than the step change made by Down Arrow.

Do's and Don'ts

Common Button Labels and Usage

Title case, 2-3 words maximum.
Do not combine actions in a label (exception: "Customize & Buy").
If standard labels don't fit the button's purpose, align label with the task the user is attempting.

Please refer to the Dell Technologies branding website, https://brand.delltechnologies.com/faq/#voice, for further information regarding call-to-action labels and usage.

Button Label:
Corresponding Action:
Add to Cart
Search
Cancel
Save
Edit
Delete
Continue
Next/Previous
Submit
Select
Sign In/Sign Out
View Details
Ok/Cancel
Learn More
Close
Takes users to Cart page, with item added
Used for search buttons
Takes users back to entry point for a task
Used to save an item
Navigates users to change an item
Deletes an item on the page, usually with a verification step
Used as progression
Used as forward and backward navigation (Next is primary, Previous is secondary)
Used to submit a task or info
Used for choosing items in a task flow
Authentication standard, for consistency do not use Log In/Log Out or Signin/Signout
Used instead of “Select” in cases of product details or within learn content
For use in modal verification steps when more specific CTAs will not fit due to space
Used to link users to more learning content or contextual help
Used within modal windows

Accessibility

The W3C Web Accessibility Initiative (WAI) develops standards and support materials to help you understand and implement accessibility.

Please follow the best practices for single-thumb sliders from WAI-ARIA authoring practices 1.1.

Please also refer to these recommendations for sliders from WAI-ARIA 1.1.

You may refer to this example of a horizontal slider or these examples of sliders with aria-orientation and aria-valuetext from WAI-ARIA practices 1.1.

You may also refer to this tutorial for validating common input from Web Accessibility Tutorials.

Double Handle Slider

In addition to the above, please follow the best practices for multi-thumb sliders from WAI-ARIA authoring practices 1.1.

You may refer to this example of a horizontal multi-thumb slider from WAI-ARIA practices 1.1.