You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes#34 (which closesgithub/accessibility#10749)
## Problem
Every finding was filed as if it were a hard WCAG failure, with no way to differentiate definitive violations and best-practice or experimental
checks. There was also no way to stop filing the non-WCAG ones.
## Changes
- Classify each Axe finding as `wcag`, `best-practice`, or `experimental`
- Surface non-WCAG findings in the filed issue: a "**Note:** …not a hard WCAG failure" line in the body and a `best-practice`/`experimental`label.
- Add two action inputs, `file_best_practice_issues` and`file_experimental_issues` (default `true`), to skip filing those categories
Copy file name to clipboardExpand all lines: .github/actions/file/action.yml
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,14 @@ inputs:
28
28
description: "When true, log the issues that would be filed without opening, closing, or reopening any issues."
29
29
required: false
30
30
default: "false"
31
+
file_best_practice_issues:
32
+
description: "File issues for best-practice findings (accessibility recommendations that are not hard WCAG failures). Disabling only suppresses new issues; existing ones are left untouched."
33
+
required: false
34
+
default: "true"
35
+
file_experimental_issues:
36
+
description: "File issues for experimental findings (checks that are not yet stable). Disabling only suppresses new issues; existing ones are left untouched."
finding.category==='experimental' ? 'an experimental check' : 'a best-practice recommendation'
25
+
}, not a definite WCAG failure.\n\n`
26
+
: ''
27
+
28
+
conststandardsLine=
29
+
finding.category&&finding.category!=='wcag'
30
+
? '- [ ] The fix MUST meet the accessibility standards specified by the repository or organization (WCAG 2.2 if applicable).'
31
+
: '- [ ] The fix MUST meet WCAG 2.2 guidelines OR the accessibility standards specified by the repository or organization.'
32
+
21
33
constacceptanceCriteria=`## Acceptance Criteria
22
34
- [ ] The specific violation reported in this issue is no longer reproducible.
23
-
- [ ] The fix MUST meet WCAG 2.1 guidelines OR the accessibility standards specified by the repository or organization.
35
+
${standardsLine}
24
36
- [ ] A test SHOULD be added to ensure this specific violation does not regress.
25
37
- [ ] This PR MUST NOT introduce any new accessibility issues or regressions.`
26
38
27
-
constbody=`## What
39
+
constbody=`${categoryNotice}## What
28
40
An accessibility scan ${finding.html ? `flagged the element \`${finding.html}\`` : `found an issue on ${finding.url}`} because ${finding.problemShort}. Learn more about why this was flagged by visiting ${finding.problemUrl}.
0 commit comments