Skip to content
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

Merged
merged 11 commits into from
Sep 28, 2020

Conversation

jlin95
Copy link
Contributor

@jlin95 jlin95 commented Aug 6, 2020

Create best practice rule to flag elements with role conflict resolution #2284

Reviewer checks

Required fields, to be filled out by PR reviewer(s)

  • Follows the commit message policy, appropriate for next version
  • Code is reviewed for security

@jlin95 jlin95 requested a review from a team as a code owner August 6, 2020 03:01
doc/rule-descriptions.md Outdated Show resolved Hide resolved
"help": "Elements of role none or presentation should be flagged"
},
"preload": false,
"all": ["is-element-focusable", "has-global-aria-attribute"],
Copy link
Contributor

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.

lib/rules/flag-role.json Outdated Show resolved Hide resolved
Copy link
Contributor

@straker straker left a 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.

Copy link
Contributor

@straker straker left a 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.

lib/checks/aria/has-global-aria-attribute.json Outdated Show resolved Hide resolved
@straker
Copy link
Contributor

straker commented Sep 14, 2020

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).

Copy link
Contributor

@straker straker left a 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

@straker straker changed the title Create best practice rule to flag elements with role conflict resolution #2284 feat(presentation-role-conflict): create rule to flag elements with role conflict resolution #2284 Sep 28, 2020
@straker straker merged commit e4edffc into dequelabs:develop Sep 28, 2020
@jlin95
Copy link
Contributor Author

jlin95 commented Sep 29, 2020

Thank you @WilcoFiers @straker for guidance and review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants