Skip to content

Commit

Permalink
Fix: aria-valuetext attribute added to the slider to read out prefix/…
Browse files Browse the repository at this point in the history
…suffix (fixes #211)
  • Loading branch information
joe-allen-89 committed Jul 12, 2024
1 parent 4f267d2 commit 11ea8af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/slider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export default function Slider (props) {
<input className='slider__item-input js-slider-item-input'
type='range'
aria-label={ariaScaleName}
aria-valuetext={`${scaleStepPrefix} ${selectedValue} ${scaleStepSuffix}`}
value={selectedValue}
min={_scaleStart}
max={_scaleEnd}
Expand Down

0 comments on commit 11ea8af

Please sign in to comment.