-
Notifications
You must be signed in to change notification settings - Fork 779
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
feat(presentation-role-conflict): create rule to flag elements with role conflict resolution #2284 #2440
Conversation
lib/rules/flag-role.json
Outdated
"help": "Elements of role none or presentation should be flagged" | ||
}, | ||
"preload": false, | ||
"all": ["is-element-focusable", "has-global-aria-attribute"], |
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.
So this will pass the rule if the element is both focusable and has a global aria attribute. Instead it should fail the rule, so I believe these should be in the none
array.
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.
Thanks for the pr! This is a great start and should work great. Just need to update to the latest (we released 4.0) and fix a few minor things.
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.
Great work! The changes all look great I only have 1 suggestion that should help the end user know which attributes are global.
Oh, and also to fix the tests you'll need to update to the latest develop again (we disabled chrome-mobile because it started giving us problems). |
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.
Fantastic work. Creating new rules isn't an easy task, so thanks for taking this on
Thank you @WilcoFiers @straker for guidance and review! |
Create best practice rule to flag elements with role conflict resolution #2284
Reviewer checks
Required fields, to be filled out by PR reviewer(s)