Sliders

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

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

Types

Double Handle Slider

Used to select a a range of values (i.e. upper and lower limits) by sliding two handles along a linear, horizontal scale. The current values are shown in persistent locations at either end of the slider, and as a tooltip above each handle during interaction.

Double Handle Slider

Variants

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

Double Handle Slider

<h4 class="dds__text-no-wrap dds__mb-4">Price range: ($700 - $1000)</h4>
<div class="dds__slider-container"> <div class="dds__slider-min"> <span class="dds__ml-n1" data-slidermin="">$700</span> </div> <div class="dds__col" data-toggle="dds__slider"> <div class="dds__col-auto"> <h4 class="dds__sr-only" tabindex="0"><span>Slider Price range: (</span><span data-slidermin="">$700</span><span> - </span><span data-slidermax="">$1,100</span><span>)</span> </h4> <div class="dds__slider-wrapper"> <div data-toggle="dds__slider-div" class="dds__slider-target dds__slider-ltr dds__slider-horizontal"><div class="dds__slider-base"><div class="dds__slider-connects"><div class="dds__slider-connect" style="transform: translate(0%, 0px) scale(1, 1);"></div></div><div class="dds__slider-origin" style="transform: translate(-100%, 0px); z-index: 5;"><div class="dds__slider-handle dds__slider-handle-lower" data-handle="0" tabindex="0" role="slider" aria-orientation="horizontal" aria-valuemin="700.0" aria-valuemax="1099.0" aria-valuenow="700.0" aria-valuetext="$700"><div class="dds__slider-touch-area"></div><div class="dds__slider-tooltip">$700</div></div></div><div class="dds__slider-origin" style="transform: translate(0%, 0px); z-index: 4;"><div class="dds__slider-handle dds__slider-handle-upper" data-handle="1" tabindex="0" role="slider" aria-orientation="horizontal" aria-valuemin="701.0" aria-valuemax="1100.0" aria-valuenow="1100.0" aria-valuetext="$1,100"><div class="dds__slider-touch-area"></div><div class="dds__slider-tooltip">$1,100</div></div></div></div></div> <div class="dds__row dds__no-gutters dds__mt-2"></div> </div> </div> </div> <div class="dds__slider-max"> <span data-slidermax="">$1,100</span> </div>
</div>

No items found.

No items found.

No items found.

To be detemined.

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.