- Docs
- Components
- Forms
Slider
A number, or a range, on a scale: where it lies matters more than its exact digits.
- Import
- @qeetrix/react
- Status
- StableSince 0.0.2
- Renders
<input type="range">Server-rendered- Tested
- WCAG 2.2 AAaxe on every pull request
01
Keyboard
| Keys | What happens |
|---|---|
| ←→ | Steps down or up; mirrored in right to left. |
| ↑↓ | Steps up or down. |
| Page UpPage UpPage DownPage Down | Takes largeStep. |
| HomeHomeEndEnd | Jumps to min or max. |
02
Behaviour
- Role and name
- Each thumb is a slider, named by the label; a range's are "Seats, minimum" and "Seats, maximum".
- Value
- aria-valuetext is the formatted value: "8 hours", not 8.
- Error
- Linked to it, and listed by a Form's error summary.
- Forced colours
- The range draws in Highlight.
03
Tested
On every change, before it ships.
- axe, WCAG 2.2 A and AA, in Chromium on every pull request
- Firefox and WebKit every night
- Forced colours, reduced motion and right to left
- Every field shares one height and edge: a test checks them together