From 8da9a0df4796b073328eec3842f82408aba304ec Mon Sep 17 00:00:00 2001 From: Jey Date: Sat, 6 Apr 2019 11:23:21 +0100 Subject: [PATCH] fix: add SC 131 to rule aria hidden focus (#1474) --- doc/rule-descriptions.md | 2 +- lib/rules/aria-hidden-focus.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/rule-descriptions.md b/doc/rule-descriptions.md index 233eeb49d8..b2b25f9810 100644 --- a/doc/rule-descriptions.md +++ b/doc/rule-descriptions.md @@ -6,7 +6,7 @@ | aria-allowed-role | Ensures role attribute has an appropriate value for the element | Minor | cat.aria, best-practice | true | | aria-dpub-role-fallback | Ensures unsupported DPUB roles are only used on elements with implicit fallback roles | Moderate | cat.aria, wcag2a, wcag131 | true | | aria-hidden-body | Ensures aria-hidden='true' is not present on the document body. | Critical | cat.aria, wcag2a, wcag412 | true | -| aria-hidden-focus | Ensures aria-hidden elements do not contain focusable elements | Serious | cat.name-role-value, wcag2a, wcag412 | true | +| aria-hidden-focus | Ensures aria-hidden elements do not contain focusable elements | Serious | cat.name-role-value, wcag2a, wcag412, wcag131 | true | | aria-required-attr | Ensures elements with ARIA roles have all required ARIA attributes | Critical | cat.aria, wcag2a, wcag412 | true | | aria-required-children | Ensures elements with an ARIA role that require child roles contain them | Critical | cat.aria, wcag2a, wcag131 | true | | aria-required-parent | Ensures elements with an ARIA role that require parent roles are contained by them | Critical | cat.aria, wcag2a, wcag131 | true | diff --git a/lib/rules/aria-hidden-focus.json b/lib/rules/aria-hidden-focus.json index 878f29d37c..4d3460eada 100755 --- a/lib/rules/aria-hidden-focus.json +++ b/lib/rules/aria-hidden-focus.json @@ -3,7 +3,7 @@ "selector": "[aria-hidden=\"true\"]", "matches": "aria-hidden-focus-matches.js", "excludeHidden": false, - "tags": ["cat.name-role-value", "wcag2a", "wcag412"], + "tags": ["cat.name-role-value", "wcag2a", "wcag412", "wcag131"], "metadata": { "description": "Ensures aria-hidden elements do not contain focusable elements", "help": "ARIA hidden element must not contain focusable elements"