-
Notifications
You must be signed in to change notification settings - Fork 783
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
fix: role=radio should not require aria-checked #1448
Conversation
@@ -3,6 +3,7 @@ | |||
<div role="spinbutton" id="pass3" aria-valuenow="value" aria-valuemax="value" aria-valuemin="value">ok</div> | |||
<div role="heading" id="pass4" aria-level="1">ok</div> | |||
<div role="combobox" id="pass5" aria-expanded="true">ok</div> | |||
<span role="radio" id="pass6">I am BLUE!</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a check to show it doesn't fail when you give it aria-checked
please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... in the rule that checks allowed attributes.
@@ -3,6 +3,7 @@ | |||
<div role="spinbutton" id="pass3" aria-valuenow="value" aria-valuemax="value" aria-valuemin="value">ok</div> | |||
<div role="heading" id="pass4" aria-level="1">ok</div> | |||
<div role="combobox" id="pass5" aria-expanded="true">ok</div> | |||
<span role="radio" id="pass6">I am BLUE!</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... in the rule that checks allowed attributes.
@WilcoFiers - wai tools need this, so a review/ approval can be handy. |
If I'm looking at the spec correctly,
@WilcoFiers @JKODU it seems like this should still be marked as required? |
As per ARIA spec, when an element has
role=radio
, states and properties are derived from the role and do not have be explicitly mentioned.See - https://www.w3.org/TR/wai-aria-1.1/#radio for more info.
Closes issue:
Reviewer checks
Required fields, to be filled out by PR reviewer(s)