Skip to content

Commit dd4c3c3

Browse files
CBID2WilcoFiers
andauthored
feat: adding the wcag131 tag to the aria-hidden-body rule (#4349)
<< Describe the changes >> This PR adds the `wcag412` tag to the aria-hidden-body rule, making it easier for the testing engine to detect issues. Closes #4315 --------- Signed-off-by: Christine <shecoder30@gmail.com> Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>
1 parent ed737c7 commit dd4c3c3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

doc/rule-descriptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
| [aria-command-name](https://dequeuniversity.com/rules/axe/4.8/aria-command-name?application=RuleDescription) | Ensures every ARIA button, link and menuitem has an accessible name | Serious | cat.aria, wcag2a, wcag412, TTv5, TT6.a, EN-301-549, EN-9.4.1.2, ACT | failure, needs&nbsp;review | [97a4e1](https://act-rules.github.io/rules/97a4e1) |
2323
| [aria-conditional-attr](https://dequeuniversity.com/rules/axe/4.8/aria-conditional-attr?application=RuleDescription) | Ensures ARIA attributes are used as described in the specification of the element&apos;s role | Serious | cat.aria, wcag2a, wcag412, EN-301-549, EN-9.4.1.2 | failure | [5c01ea](https://act-rules.github.io/rules/5c01ea) |
2424
| [aria-deprecated-role](https://dequeuniversity.com/rules/axe/4.8/aria-deprecated-role?application=RuleDescription) | Ensures elements do not use deprecated roles | Minor | cat.aria, wcag2a, wcag412, EN-301-549, EN-9.4.1.2 | failure | [674b10](https://act-rules.github.io/rules/674b10) |
25-
| [aria-hidden-body](https://dequeuniversity.com/rules/axe/4.8/aria-hidden-body?application=RuleDescription) | Ensures aria-hidden=&quot;true&quot; is not present on the document body. | Critical | cat.aria, wcag2a, wcag412, EN-301-549, EN-9.4.1.2 | failure | |
25+
| [aria-hidden-body](https://dequeuniversity.com/rules/axe/4.8/aria-hidden-body?application=RuleDescription) | Ensures aria-hidden=&quot;true&quot; is not present on the document body. | Critical | cat.aria, wcag2a, wcag131, wcag412, EN-301-549, EN-9.4.1.2 | failure | |
2626
| [aria-hidden-focus](https://dequeuniversity.com/rules/axe/4.8/aria-hidden-focus?application=RuleDescription) | Ensures aria-hidden elements are not focusable nor contain focusable elements | Serious | cat.name-role-value, wcag2a, wcag412, TTv5, TT6.a, EN-301-549, EN-9.4.1.2 | failure, needs&nbsp;review | [6cfa84](https://act-rules.github.io/rules/6cfa84) |
2727
| [aria-input-field-name](https://dequeuniversity.com/rules/axe/4.8/aria-input-field-name?application=RuleDescription) | Ensures every ARIA input field has an accessible name | Serious | cat.aria, wcag2a, wcag412, TTv5, TT5.c, EN-301-549, EN-9.4.1.2, ACT | failure, needs&nbsp;review | [e086e5](https://act-rules.github.io/rules/e086e5) |
2828
| [aria-meter-name](https://dequeuniversity.com/rules/axe/4.8/aria-meter-name?application=RuleDescription) | Ensures every ARIA meter node has an accessible name | Serious | cat.aria, wcag2a, wcag111, EN-301-549, EN-9.1.1.1 | failure, needs&nbsp;review | |

lib/rules/aria-hidden-body.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@
44
"selector": "body",
55
"excludeHidden": false,
66
"matches": "is-initiator-matches",
7-
"tags": ["cat.aria", "wcag2a", "wcag412", "EN-301-549", "EN-9.4.1.2"],
7+
"tags": [
8+
"cat.aria",
9+
"wcag2a",
10+
"wcag131",
11+
"wcag412",
12+
"EN-301-549",
13+
"EN-9.1.3.1",
14+
"EN-9.4.1.2"
15+
],
816
"metadata": {
917
"description": "Ensures aria-hidden=\"true\" is not present on the document body.",
1018
"help": "aria-hidden=\"true\" must not be present on the document body"

0 commit comments

Comments
 (0)