Skip to content

Commit

Permalink
remove implied aria properties from <input type="range">
Browse files Browse the repository at this point in the history
  • Loading branch information
kirsty-hames authored Oct 26, 2023
1 parent 11e3198 commit ceb644c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions templates/slider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,11 @@ export default function Slider (props) {

<input className='slider__item-input js-slider-item-input'
type='range'
role='slider'
aria-label={ariaScaleName}
value={selectedValue}
min={_scaleStart}
max={_scaleEnd}
step={_scaleStep}
aria-valuenow={selectedValue}
aria-valuemin={_scaleStart}
aria-valuemax={_scaleEnd}
data-direction={_marginDir === 'right' ?? 'rtl'}
disabled={!_isEnabled}
onChange={e => onNumberSelected(e.target.value)}
Expand Down

0 comments on commit ceb644c

Please sign in to comment.