Accessibility

  • Role and name: a native <input type="range"> with min, max and step, named by its <label for>. aria-valuetext ("25 minutes") makes screen readers say the unit, not just "25".
  • Keyboard: the arrow keys move one step (5 min); Home and End jump to 5 and 60 min.
  • The value is always in text, so nobody has to judge the thumb's place or the fill's colour to know it, and it matches what a screen reader says.
  • Dragging is never the only way: a tap on the track moves the thumb there (WCAG 2.2, 2.5.7 Dragging Movements), and the keys step it.
  • Targets: the whole 48px row takes taps and drags, not only the 24px thumb.
  • Contrast (light, dark): thumb ink on paper 16.7 and 15.9:1; fill accent on paper 7.3 and 9.0:1; value ink on paper 16.7 and 15.9:1; label ink-muted on paper 6.4 and 8.9:1; focus ring 7.3 and 9.0:1. The empty container track is only a guide; the thumb and the value text carry the state.
  • Motion: none of its own; the thumb follows the pointer.