A press on the track away from the thumbs (WCAG 2.5.7: a single pointer sets a handle without a drag): the value under the pointer, on a step, and the handle nearer to it, the low one on a tie below the span and the high one above it. RTL tracks run from the right.
The words for a value: data-currency (whole units of a currency, in cents when data-cents), with "+" on the top of the track when data-open-top says the top means "and more".
paint
(root: HTMLElement): void
Writes the fill and the words from the inputs' values.
enhance
(root?: ParentNode): () => void
CSS variables
Variable
Default
--cap-range-hi
100%
--cap-range-lo
0%
--cap-range-track
transparent
Parts and data attributes
Class
Is
.cap-range-slider
the root
.cap-range-slider-ends
a part
.cap-range-slider-head
a part
.cap-range-slider-input
a part
.cap-range-slider-label
a part
.cap-range-slider-track
a part
.cap-range-slider-value
a part
State
Read from
:focus-visible
the platform
Accessibility
Key
Does
Tab
Moves to the low handle, then the high one
Arrow keys
Move the handle one step
Page Up, Page Down
Move the handle a larger step (the browser's)
Home, End
Move the handle to its end of the track
A group named by its visible label; each handle has its own name ("Minimum amount") and its value in words.
The span over the track repeats the handles' values and is hidden from assistive technology, so they are not read twice.
Focus is the ring around the thumb; in forced colors an outline.