docs: Add role="switch" to switches#34824
Conversation
|
@coliff please check the new HTML errors. If there's something wrong, please file a bug report to update vnu-jar and or the specs. |
|
probably slight tweak to my original wording (now that i'm reading it in context)
|
ffoodd
left a comment
There was a problem hiding this comment.
Seems good to me, according to @patrickhlauke's recommandation 👌
Thanks!
|
The accessibility tests are failing with this error: So it's suggesting we add https://developer.mozilla.org/en-US/docs/Web/API/Element/ariaChecked However, it also states on that page in the Note at the top that that we should use UPDATE: I posted an issue on the validator GitHub project. validator/validator#1221 |
|
yes this seems to be a shortcoming of the validator, as you don't need https://www.w3.org/TR/html-aria/#docconformance
|
|
Patrick, could you please chime in the upstream issue? Maybe it's just an
issue with the validator and not the specs
…On Wed, Sep 1, 2021, 10:40 Patrick H. Lauke ***@***.***> wrote:
yes this seems to be a shortcoming of the validator, as you don't need
aria-checked for native <input type="checkbox">
https://www.w3.org/TR/html-aria/#docconformance
Authors SHOULD NOT use the aria-checked attribute on input type=checkbox
elements.
[...]
Note: The HTML checked attribute can be used instead of the aria-checked
attribute for menuitemcheckbox, option or switch roles when used on
type=checkbox.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#34824 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACVLNLX4YYQSS3FM5F7WIDT7XKG3ANCNFSM5C3ACISA>
.
|
|
yeah, i did after posting the comment here validator/validator#1221 (comment) |
|
This is weird, now we no longer get the errors but the issue wasn't fixed upstream :S No idea what's happening... |
|
BTW I'll temporarily downgrade vnu in this branch to see if the errors show
up again. Then I'll revert and merge.
…On Thu, Sep 9, 2021, 11:59 Patrick H. Lauke ***@***.***> wrote:
***@***.**** approved this pull request.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#34824 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACVLNL7UZALB3GBGJVKYV3UBBZNPANCNFSM5C3ACISA>
.
|
role="switch" to switches
Fixes: #34818