-
Notifications
You must be signed in to change notification settings - Fork 791
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(metadata): consistent use of 'must' and 'should' #2770
Conversation
Is this a "feature"? Seems like a |
@stephenmathieson Wouldn't say its docs... but yeah maybe it's more of a fix. |
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.
Change LGTM, but @straker should probably take a look since this touches lib/rules
.
@WilcoFiers this change does not seem right to me. Saying Under what circumstances are these items allowed to not have an accessible name? |
@dylanb Yeah that one isn't too obvious. I ran this one by JC before we put it in. If a treeitem is interactive, it would need a name, but if it isn't, it's harder to argue that it does. ARIA says it does, which is why we put it as a best practice. But if you have a static treeitem, it's basically no different than a nested list. We don't require listitems to have an accessible name - ARIA doesn't either. So that's why we landed on that one. I suppose we could've made it a WCAG rule and restrict it to focusable elements, but then again, we don't fail focusable listitems if they're empty either. This seemed like the most appropriate way to do it. It's maybe not as strict as it could be if we further refined it, but it also gets not false positives. Treeitem didn't seem like the type of role to invest lots of time in. It's such an uncommon thing to have on a page. Bigger fish. |
I am worried about all of them - that one was just an example. I am concerned that these changes are not being made with usability in mind. We need to remember that 97%+ of the people reading these do not know the nuances that the JC would be concerned about. I want to put the brakes on this and have a usability discussion about these first and foremost before we make any changes. |
Discussed with @WilcoFiers : we are good to go on this |
Ensure that best practices never use the word "must" in its description / help text, and that other rules don't use the word "should".
Closes issue: #1491