[a11y]: [Range] With small step prop, right arrow key stops working after a few presses #18557
Open
2 tasks done
Labels
component: slider
package: @carbon/react
@carbon/react
role: dev 🤖
severity: 2
https://ibm.biz/carbon-severity
type: a11y ♿
type: bug 🐛
Package
@carbon/react
Browser
Chrome
Operating System
MacOS
Package version
v1.61.0
React version
v18.2.0
Automated testing tool and ruleset
Manual testing / Bug logged against our product
Assistive technology
No response
Description
When a
<Range>
control has astep <= 0.2
, the keyboard right arrow only works for small number of presses.For example, when the
step
is0.1
and thevalue
is0
, I can press the right arrow key three times and thevalue
correctly three times and thevalue
increases each of those times; the fourth time has no effect.WCAG 2.1 Violation
No response
Reproduction/example
https://stackblitz.com/edit/github-l6xz9dat?file=package.json
Steps to reproduce
<Range>
component with these props:min: 0
max: 1
step: 0.1
value: 0
value
increments to0.1
. (Correct behaviour.)value
continues to successfully increment to0.2
then0.3
.value
does not change.Through experimentation, it seems the
max
value does not have an effect, and this bug can be reproduced so long asstep
is0.2
or less.I was also able to reproduce this on the React demo page for the Range filter, using the above props.
In addition to seeing this issue on Chrome (132.0.6834.112), I've also been able to reproduce it on Firefox (128.7.0esr) and Safari (17.4) - all on Mac OS X (14.4).
Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
Code of Conduct
The text was updated successfully, but these errors were encountered: