-
Notifications
You must be signed in to change notification settings - Fork 779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is aria-required on input with type="range" a critical issue? #4027
Comments
I'm also getting a similar issue with |
Thanks for the issue. It looks like the slider role does not allow We'd love a pr for the |
Talked to @WilcoFiers about |
Verified with the latest axe-core-develop branch code base,
Screen.Recording.2023-05-25.at.2.14.37.PM.movFor Uploading Screen Recording 2023-05-25 at 8.31.05 PM.mov… |
Product
axe-core
Question
When an
input
element hastype="range"
(i.e. a slider input), the presence of the attributearia-required="true"
triggers the Axe rule Elements must only use allowed ARIA attributes. This rule has the impact level "Critical" (the highest level), i.e. "Results in blocked content for people with disabilities, and will definitely prevent them from accessing fundamental features or content."I understand that incorrect roles can be blocking in certain cases, but why would
aria-required="true"
be blocking on a slider / range input? I also understand that marking a slider input as required makes little sense, since the input always has a default value, even without user interaction. In fact, the HTML 5 specification even prohibits the native attributerequired
on a slider. But that still does not explain whyaria-required="true"
would be a blocking issue on a range input.Is this really a blocking issue or does the rule "Elements must only use allowed ARIA attributes" catch too many things?
The text was updated successfully, but these errors were encountered: