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(rule): optional impact on rules #2393

Merged
merged 2 commits into from
Jul 20, 2020
Merged

feat(rule): optional impact on rules #2393

merged 2 commits into from
Jul 20, 2020

Conversation

WilcoFiers
Copy link
Contributor

@WilcoFiers WilcoFiers commented Jul 17, 2020

Allows an impact property on rules, which if used overrides the impact of all checks for that rule.

Includes the deletion of the unreleased has-accessible-text check, which was added because axe-core did not support this feature.

Closes issue: #693

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

@WilcoFiers WilcoFiers requested a review from a team as a code owner July 17, 2020 14:08
doc/API.md Outdated
@@ -202,7 +202,7 @@ axe.configure({
- `rules` - Used to add rules to the existing set of rules, or to override the properties of existing rules
- The rules attribute is an Array of rule objects
- each rule object can contain the following attributes
- `id` - string(required). This uniquely identifies the rule. If the rule already exists, it will be overridden with any of the attributes supplied. The attributes below that are marked required, are only required for new rules.
- `id` - string(required). This uniquely identifies the rule. If the rule already exists, it will be overridden with any of the attributes supplied. The attributes below that are marked required, are only required for new rules. - `impact` - string(optional). Override the impact defined by checks
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a newline is needed before the impact list item. Right now it's part of the same paragraph as id.

@WilcoFiers WilcoFiers merged commit e48c1eb into develop Jul 20, 2020
@WilcoFiers WilcoFiers deleted the rule-level-impact branch July 20, 2020 13:51
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.

None yet

2 participants