-
Notifications
You must be signed in to change notification settings - Fork 78
"role
attribute has valid value" (674b10): map to 1.3.1
#1537
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
Conversation
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.
I'm on board 👍
Final Call ends on January 28th. |
|
||
```html | ||
<img role="lnik" src="/test-assets/shared/w3c-logo.png" alt="W3C logo" onclick="location.href='https://www.w3.org/'" /> | ||
<label>Search: <input type="text" role="searchfield" placeholder="Enter 3 or more characters"/></label> |
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.
I think this is an example of where that third assumption might be true. Without the role attribute, this would be a perfectly valid form field.
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.
I would argue that the correct (and definitely the intended) role is here searchbox
, so the third assumption still holds. (and this is indicated by the "Search" label).
color: white; | ||
} | ||
</style> | ||
<span class="button" tabindex="0" role="button link" onclick="location.href='https://act-rules.github.io/'" |
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.
I don't much like this example. I don't think button is a particularly appropriate role for this. I think we should show an appropriate use of fallback roles if we want them demonstrated. Maybe use on of the DPUB roles, with link
as a fallback?
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.
I don't know what this example was supposed to show (I've only added the styling), but I definitely like the DPUB idea 😀
Looks at this resource - https://zellwk.com/blog/style-hover-focus-active-states/ |
Final Call has ended. Merging. |
After CG call on 14/01/2021, we decided to map the "role attribute has valid value" rule to 1.3.1 with an assumption that a role attribute implies some styling to make the element look like it should.
See https://github.com/act-rules/act-rules.github.io/wiki/Minutes-2021-01-14#what-to-do-of-role-attribute-has-valid-value
I'm not super happy with the examples which are poor authoring practices 🤷
Closes issue(s):
role
attribute has valid value"? #1496Need for Final Call:
This will require a 1 week Final Call (updating mappings and examples)
Pull Request Etiquette
When creating PR:
develop
branch (left side).After creating PR:
Rule
,Definition
orChore
.When merging a PR:
How to Review And Approve