A slider is an adjustable selector used to increase or decrease values by moving handles over a horizontal track.
Sliders come in three different sizes: small, medium (default) and large.
A label is placed close to the slider, either above or below, on the left, the right - or both.
These show predetermined values placed along the track. The user can move the slider in increments anywhere on the track.
These indicate fixed values that the slider moves to. There are no intermediate positions available.
Information which accompanies the slider must relate clearly to the indicated value.
Displayed with slider must be concise and specific.
A slider can be navigated using a keyboard. The keyboard focus state takes the slider’s visual hover state and adds a blue ring to the slider handle in focus.
Shell DS components are programmatically determinable with appropriate semantic markup and are designed to meet colour contrast requirements. If you’re not using Shell DS code, you will need to cover the accessibility considerations for each component in this pattern.
The label must be programmatically associated with the slider component.
Arrow keys (up/down or left/right) can be used to change the value of the slider by increments. Shift + Tab navigates backwards. Tab navigates forwards.
Every effort has been made to ensure that the Shell Design System follows accessibility best practice.
The Shell DS React framework incorporates keyboard operation to support the widest variety of assistive technologies and devices. For any future frameworks other than React, accessibility will need to be reviewed.
Help us to help you by contacting the Accessibility team for support and information regarding any questions relating to accessibility.
Is this page useful for you?
Your feedback helps to improve our documentation.