Skip to content

Commit 7da6bec

Browse files
Phase 1: Adding New Rules
1 parent ac9b3dc commit 7da6bec

20 files changed

+3074
-181
lines changed

CHANGELOG.md

Lines changed: 108 additions & 0 deletions
Large diffs are not rendered by default.

doc/rule-descriptions.md

Lines changed: 133 additions & 9 deletions
Large diffs are not rendered by default.

lib/rules/css-orientation-lock.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
"wcag21aa",
99
"EN-301-549",
1010
"EN-9.1.3.4",
11+
"RGAAv4",
12+
"RGAA-13.9.1",
1113
"experimental"
1214
],
1315
"actIds": ["b33eff"],
1416
"metadata": {
15-
"description": "Ensures content is not locked to any specific display orientation, and the content is operable in all display orientations",
17+
"description": "Ensure content is not locked to any specific display orientation, and the content is operable in all display orientations",
1618
"help": "CSS Media queries must not lock display orientation"
1719
},
1820
"all": ["css-orientation-lock"],

lib/rules/focus-order-semantics.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@
33
"impact": "minor",
44
"selector": "div, h1, h2, h3, h4, h5, h6, [role=heading], p, span",
55
"matches": "inserted-into-focus-order-matches",
6-
"tags": ["cat.keyboard", "best-practice", "experimental"],
6+
"tags": [
7+
"cat.keyboard",
8+
"best-practice",
9+
"RGAAv4",
10+
"RGAA-12.8.1",
11+
"experimental"
12+
],
713
"metadata": {
8-
"description": "Ensures elements in the focus order have a role appropriate for interactive content",
14+
"description": "Ensure elements in the focus order have a role appropriate for interactive content",
915
"help": "Elements in the focus order should have an appropriate role"
1016
},
1117
"all": [],

lib/rules/hidden-content.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"excludeHidden": false,
66
"tags": ["cat.structure", "best-practice", "experimental", "review-item"],
77
"metadata": {
8-
"description": "Informs users about hidden content.",
8+
"description": "Inform users about hidden content.",
99
"help": "Hidden content on the page should be analyzed"
1010
},
1111
"all": [],

lib/rules/summary-name.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"id": "summary-name",
3+
"impact": "serious",
4+
"selector": "summary",
5+
"matches": "summary-interactive-matches",
6+
"tags": [
7+
"cat.name-role-value",
8+
"wcag2a",
9+
"wcag412",
10+
"section508",
11+
"section508.22.a",
12+
"TTv5",
13+
"TT6.a",
14+
"EN-301-549",
15+
"EN-9.4.1.2"
16+
],
17+
"metadata": {
18+
"description": "Ensure summary elements have discernible text",
19+
"help": "Summary elements must have discernible text"
20+
},
21+
"all": [],
22+
"any": [
23+
"has-visible-text",
24+
"aria-label",
25+
"aria-labelledby",
26+
"non-empty-title"
27+
],
28+
"none": []
29+
}

lib/rules/table-fake-caption.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"section508",
1212
"section508.22.g",
1313
"EN-301-549",
14-
"EN-9.1.3.1"
14+
"EN-9.1.3.1",
15+
"RGAAv4",
16+
"RGAA-5.4.1"
1517
],
1618
"metadata": {
1719
"description": "Ensure that tables with a caption use the <caption> element.",

lib/rules/td-has-header.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"TTv5",
1414
"TT14.b",
1515
"EN-301-549",
16-
"EN-9.1.3.1"
16+
"EN-9.1.3.1",
17+
"RGAAv4",
18+
"RGAA-5.7.4"
1719
],
1820
"metadata": {
1921
"description": "Ensure that each non-empty data cell in a <table> larger than 3 by 3 has one or more table headers",

locales/de.json

Lines changed: 45 additions & 28 deletions
Large diffs are not rendered by default.

locales/ja.json

Lines changed: 141 additions & 124 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)