From 9dbd753976bff83717845d952dd6ca1bcde464eb Mon Sep 17 00:00:00 2001 From: Phill Jenkins Date: Thu, 1 Aug 2024 18:46:12 -0500 Subject: [PATCH] 6522 Rule help matches Requirement listing rule --- .../en-US/application_content_accessible.html | 14 +++++++++----- .../help-v4/en-US/aria_attribute_valid.html | 9 ++++++--- .../help-v4/en-US/canvas_content_described.html | 3 ++- .../help-v4/en-US/input_label_after.html | 8 +++++--- .../help-v4/en-US/input_label_before.html | 7 +++++-- .../help-v4/en-US/media_audio_transcribed.html | 2 ++ .../help-v4/en-US/media_track_available.html | 3 +++ .../help-v4/en-US/script_onclick_avoid.html | 3 ++- .../help-v4/en-US/script_onclick_misuse.html | 2 +- .../help-v4/en-US/style_highcontrast_visible.html | 10 +++++++--- .../src/v4/rules/application_content_accessible.ts | 2 +- .../src/v4/rules/aria_accessiblename_exists.ts | 2 +- .../src/v4/rules/aria_semantics.ts | 2 +- .../src/v4/rules/canvas_content_described.ts | 2 +- .../src/v4/rules/caption_track_exists.ts | 2 +- .../src/v4/rules/img_alt_redundant.ts | 2 +- .../src/v4/rules/input_label_visible.ts | 2 +- .../src/v4/rules/script_focus_blur_review.ts | 2 +- .../src/v4/rules/script_onclick_avoid.ts | 2 +- .../src/v4/rules/script_onclick_misuse.ts | 2 +- .../src/v4/rules/style_highcontrast_visible.ts | 4 ++-- .../src/v4/rules/style_viewport_resizable.ts | 2 +- 22 files changed, 55 insertions(+), 32 deletions(-) diff --git a/accessibility-checker-engine/help-v4/en-US/application_content_accessible.html b/accessibility-checker-engine/help-v4/en-US/application_content_accessible.html index ee7eaf56e..efea63823 100644 --- a/accessibility-checker-engine/help-v4/en-US/application_content_accessible.html +++ b/accessibility-checker-engine/help-v4/en-US/application_content_accessible.html @@ -53,10 +53,11 @@

### What to do -* Verify that the content is decorative; -* **Or**, associate the content with a focusable element using the `aria-labelledby` or `aria-describedby` attribute; -* **Or**, place the content in a focusable element that has role `"document"` or `"article"`; -* **Or**, manage the focus of descendants as described in [Developing a Keyboard Interface](https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/) by updating the value of `aria-activedescendant` to reference the element containing the focused content. +* Verify that the content is decorative +* **Or**, associate the content with a focusable element using the `aria-labelledby` or `aria-describedby` attribute +* **Or**, place the content in a focusable element that has role `"document"` or `"article"` +* **Or**, manage the focus of descendants as described in [Developing a Keyboard Interface](https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/) by updating the value of `aria-activedescendant` to reference the element containing the focused content +* **And if**, the application provides assistive technology, use platform and other industry standard accessibility services @@ -65,12 +66,15 @@

+ diff --git a/accessibility-checker-engine/help-v4/en-US/media_track_available.html b/accessibility-checker-engine/help-v4/en-US/media_track_available.html index f69df7698..9b5fcaa19 100644 --- a/accessibility-checker-engine/help-v4/en-US/media_track_available.html +++ b/accessibility-checker-engine/help-v4/en-US/media_track_available.html @@ -66,11 +66,14 @@

+ @@ -73,9 +73,13 @@

### About this requirement * [IBM 1.1.1 Non-text content](https://www.ibm.com/able/requirements/requirements/#1_1_1) +* [IBM 1.3.2 Meaningful sequence](https://www.ibm.com/able/requirements/requirements/#1_3_2) +* [IBM 1.4.11 Non-text contrast](https://www.ibm.com/able/requirements/requirements/#1_4_11) +* [Design - Component contrast](https://www.ibm.com/able/toolkit/design/visual/#components-contrast) +* [G207: Ensure contrast for icons](https://www.w3.org/WAI/WCAG22/Techniques/general/G207) * [Failure F1: CSS positioning that changes the meaning](https://www.w3.org/WAI/WCAG22/Techniques/failures/F1) * [Failure F3: CSS images that convey important information](https://www.w3.org/WAI/WCAG22/Techniques/failures/F3) -* [Failure F78: Styling element that removes the visual focus](https://www.w3.org/WAI/WCAG22/Techniques/failures/F78) + ### Who does this affect? diff --git a/accessibility-checker-engine/src/v4/rules/application_content_accessible.ts b/accessibility-checker-engine/src/v4/rules/application_content_accessible.ts index 3ef29e642..2df7ed075 100644 --- a/accessibility-checker-engine/src/v4/rules/application_content_accessible.ts +++ b/accessibility-checker-engine/src/v4/rules/application_content_accessible.ts @@ -42,7 +42,7 @@ export let application_content_accessible: Rule = { }, rulesets: [{ id: [ "IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_0", "WCAG_2_1", "WCAG_2_2"], - num: "2.1.1", // num: [ "2.4.4", "x.y.z" ] also allowed + num: ["1.1.1", "2.1.1"], //match listing in help level: eRulePolicy.VIOLATION, toolkitLevel: eToolkitLevel.LEVEL_ONE }], diff --git a/accessibility-checker-engine/src/v4/rules/aria_accessiblename_exists.ts b/accessibility-checker-engine/src/v4/rules/aria_accessiblename_exists.ts index 648594b64..cf39f2f8c 100644 --- a/accessibility-checker-engine/src/v4/rules/aria_accessiblename_exists.ts +++ b/accessibility-checker-engine/src/v4/rules/aria_accessiblename_exists.ts @@ -37,7 +37,7 @@ export let aria_accessiblename_exists: Rule = { }, rulesets: [{ "id": ["IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_1", "WCAG_2_0", "WCAG_2_2"], - "num": ["1.3.1"], + "num": ["4.1.2"], "level": eRulePolicy.RECOMMENDATION, "toolkitLevel": eToolkitLevel.LEVEL_ONE }], diff --git a/accessibility-checker-engine/src/v4/rules/aria_semantics.ts b/accessibility-checker-engine/src/v4/rules/aria_semantics.ts index 5d9ec9d93..005e050eb 100644 --- a/accessibility-checker-engine/src/v4/rules/aria_semantics.ts +++ b/accessibility-checker-engine/src/v4/rules/aria_semantics.ts @@ -131,7 +131,7 @@ export let aria_attribute_valid: Rule = { }, rulesets: [{ "id": ["IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_1", "WCAG_2_0", "WCAG_2_2"], - "num": ["ARIA"], + "num": ["ARIA"], //removed mapping to 4.1.2 from here and help "level": eRulePolicy.VIOLATION, "toolkitLevel": eToolkitLevel.LEVEL_ONE }], diff --git a/accessibility-checker-engine/src/v4/rules/canvas_content_described.ts b/accessibility-checker-engine/src/v4/rules/canvas_content_described.ts index 81d616cf3..65968b706 100644 --- a/accessibility-checker-engine/src/v4/rules/canvas_content_described.ts +++ b/accessibility-checker-engine/src/v4/rules/canvas_content_described.ts @@ -39,7 +39,7 @@ export let canvas_content_described: Rule = { }, rulesets: [{ "id": ["IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_1", "WCAG_2_0", "WCAG_2_2"], - "num": ["1.1.1", "4.1.2"], + "num": ["1.1.1", "2.1.1", "4.1.2"], "level": eRulePolicy.RECOMMENDATION, "toolkitLevel": eToolkitLevel.LEVEL_THREE }], diff --git a/accessibility-checker-engine/src/v4/rules/caption_track_exists.ts b/accessibility-checker-engine/src/v4/rules/caption_track_exists.ts index 6ada5eded..7f3e7918d 100644 --- a/accessibility-checker-engine/src/v4/rules/caption_track_exists.ts +++ b/accessibility-checker-engine/src/v4/rules/caption_track_exists.ts @@ -38,7 +38,7 @@ export let caption_track_exists: Rule = { }, rulesets: [{ "id": ["IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_1", "WCAG_2_0", "WCAG_2_2"], - "num": ["1.2.1", "1.2.2", "1.2.4"], + "num": ["1.2.2"], "level": eRulePolicy.VIOLATION, "toolkitLevel": eToolkitLevel.LEVEL_ONE }], diff --git a/accessibility-checker-engine/src/v4/rules/img_alt_redundant.ts b/accessibility-checker-engine/src/v4/rules/img_alt_redundant.ts index 8dc6f4f0f..334f0628b 100644 --- a/accessibility-checker-engine/src/v4/rules/img_alt_redundant.ts +++ b/accessibility-checker-engine/src/v4/rules/img_alt_redundant.ts @@ -45,7 +45,7 @@ export let img_alt_redundant: Rule = { }, rulesets: [{ "id": ["IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_1", "WCAG_2_0", "WCAG_2_2"], - "num": ["1.1.1"], + "num": ["1.1.1", "2.4.4"], //match help references "level": eRulePolicy.VIOLATION, "toolkitLevel": eToolkitLevel.LEVEL_TWO }], diff --git a/accessibility-checker-engine/src/v4/rules/input_label_visible.ts b/accessibility-checker-engine/src/v4/rules/input_label_visible.ts index 6c208c425..d126df4b1 100644 --- a/accessibility-checker-engine/src/v4/rules/input_label_visible.ts +++ b/accessibility-checker-engine/src/v4/rules/input_label_visible.ts @@ -47,7 +47,7 @@ export let input_label_visible: Rule = { }, rulesets: [{ "id": ["IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_1", "WCAG_2_0", "WCAG_2_2"], - "num": ["3.3.2"], + "num": ["2.5.3", "3.3.2"], //map to both requirements in help "level": eRulePolicy.VIOLATION, "toolkitLevel": eToolkitLevel.LEVEL_ONE }], diff --git a/accessibility-checker-engine/src/v4/rules/script_focus_blur_review.ts b/accessibility-checker-engine/src/v4/rules/script_focus_blur_review.ts index cbfcdbf10..9b3284bf0 100644 --- a/accessibility-checker-engine/src/v4/rules/script_focus_blur_review.ts +++ b/accessibility-checker-engine/src/v4/rules/script_focus_blur_review.ts @@ -39,7 +39,7 @@ export let script_focus_blur_review: Rule = { }, rulesets: [{ "id": ["IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_1", "WCAG_2_0", "WCAG_2_2"], - "num": ["2.4.7", "3.2.1"], + "num": ["2.1.1", "2.4.7", "3.2.1"], //match requirements listed in help "level": eRulePolicy.VIOLATION, "toolkitLevel": eToolkitLevel.LEVEL_ONE }], diff --git a/accessibility-checker-engine/src/v4/rules/script_onclick_avoid.ts b/accessibility-checker-engine/src/v4/rules/script_onclick_avoid.ts index 2420195de..0a1308528 100644 --- a/accessibility-checker-engine/src/v4/rules/script_onclick_avoid.ts +++ b/accessibility-checker-engine/src/v4/rules/script_onclick_avoid.ts @@ -40,7 +40,7 @@ export let script_onclick_avoid: Rule = { }, rulesets: [{ "id": ["IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_1", "WCAG_2_0", "WCAG_2_2"], - "num": ["1.3.1"], + "num": ["2.1.1"], //help and match mapping to 2.1.1 only "level": eRulePolicy.RECOMMENDATION, "toolkitLevel": eToolkitLevel.LEVEL_FOUR }], diff --git a/accessibility-checker-engine/src/v4/rules/script_onclick_misuse.ts b/accessibility-checker-engine/src/v4/rules/script_onclick_misuse.ts index 3b8b9a310..8cebee286 100644 --- a/accessibility-checker-engine/src/v4/rules/script_onclick_misuse.ts +++ b/accessibility-checker-engine/src/v4/rules/script_onclick_misuse.ts @@ -39,7 +39,7 @@ export let script_onclick_misuse: Rule = { }, rulesets: [{ "id": ["IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_1", "WCAG_2_0", "WCAG_2_2"], - "num": ["1.3.1"], + "num": ["2.1.1"], //help and match mapping to 2.1.1 only "level": eRulePolicy.VIOLATION, "toolkitLevel": eToolkitLevel.LEVEL_ONE }], diff --git a/accessibility-checker-engine/src/v4/rules/style_highcontrast_visible.ts b/accessibility-checker-engine/src/v4/rules/style_highcontrast_visible.ts index acce0b86c..f642b4055 100644 --- a/accessibility-checker-engine/src/v4/rules/style_highcontrast_visible.ts +++ b/accessibility-checker-engine/src/v4/rules/style_highcontrast_visible.ts @@ -39,13 +39,13 @@ export let style_highcontrast_visible: Rule = { }, rulesets: [{ "id": ["IBM_Accessibility", "IBM_Accessibility_next"], - "num": ["1.1.1"], + "num": ["1.1.1", "1.3.2", "1.4.11"], //other "style" rules for focus, hover, and color "level": eRulePolicy.VIOLATION, "toolkitLevel": eToolkitLevel.LEVEL_ONE }, { "id": ["WCAG_2_1", "WCAG_2_0", "WCAG_2_2"], - "num": ["1.1.1"], + "num": ["1.1.1", "1.3.2", "1.4.11"], "level": eRulePolicy.RECOMMENDATION, "toolkitLevel": eToolkitLevel.LEVEL_ONE }], diff --git a/accessibility-checker-engine/src/v4/rules/style_viewport_resizable.ts b/accessibility-checker-engine/src/v4/rules/style_viewport_resizable.ts index 55e1b6402..23b87f4e5 100644 --- a/accessibility-checker-engine/src/v4/rules/style_viewport_resizable.ts +++ b/accessibility-checker-engine/src/v4/rules/style_viewport_resizable.ts @@ -43,7 +43,7 @@ export let style_viewport_resizable: Rule = { }, rulesets: [{ id: ["IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_0", "WCAG_2_1", "WCAG_2_2"], - num: "1.4.4", // num: [ "2.4.4", "x.y.z" ] also allowed + num: ["1.4.4", "1.4.10"], // match help for both level: eRulePolicy.VIOLATION, toolkitLevel: eToolkitLevel.LEVEL_THREE }],