role-has-required-aria-props warns about role="switch"
missing aria-checked
when used with native <input checked>
#932
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
I have a custom switch built with
<input type="checkbox">
:After enabling role-has-required-aria-props, the following problem is reported:
I believe this is a false positive.
<input type="checkbox">
already has its ownchecked
, and I'd think we shouldn't need to replace it witharia-checked
. A similar issue was reported for Svelte's ESLint plugin: sveltejs/svelte#7837Should we consider allowing
checked
in place ofaria-checked
?The text was updated successfully, but these errors were encountered: