Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature(engine): Update IBM_Accessibility policy to include new WCAG 2.2 rules #2061

Merged
merged 9 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export let draggable_alternative_exists: Rule = {
}
},
rulesets: [{
id: ["IBM_Accessibility_next", "WCAG_2_2"],
id: [ "IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_2"],
num: ["2.5.7"],
level: eRulePolicy.VIOLATION,
toolkitLevel: eToolkitLevel.LEVEL_THREE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export let element_tabbable_unobscured: Rule = {
}
},
rulesets: [{
id: ["IBM_Accessibility_next", "WCAG_2_2"],
id: [ "IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_2"],
num: ["2.4.11"],
level: eRulePolicy.VIOLATION,
toolkitLevel: eToolkitLevel.LEVEL_THREE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@
}
},
rulesets: [{
id: ["IBM_Accessibility_next", "WCAG_2_2"],
id: [ "IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_2"],
num: ["2.5.8"],
level: eRulePolicy.VIOLATION,
toolkitLevel: eToolkitLevel.LEVEL_THREE,
reasonCodes: ["pass_spacing","pass_sized", "pass_inline","pass_default", "violation_spacing", "potential_overlap"]
},
{
id: ["IBM_Accessibility_next", "WCAG_2_2"],
id: [ "IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_2"],
num: ["2.5.8"],
level: eRulePolicy.RECOMMENDATION,
toolkitLevel: eToolkitLevel.LEVEL_THREE,
Expand Down
6 changes: 3 additions & 3 deletions accessibility-checker-engine/src/v4/rulesets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ export let a11yRulesets: Guideline[] = [
},
{
id: "IBM_Accessibility",
name: "IBM Accessibility 7.2",
name: "IBM Accessibility 7.3",
category: eGuidelineCategory.ACCESSIBILITY,
description: "Rules for WCAG 2.0 & 2.1 A and AA plus additional IBM supplemental requirements.",
description: "Rules for WCAG 2.0, 2.1, 2.2 A and AA plus additional IBM supplemental requirements.",
// This ruleset has all 2.0 and 2.1 checkpoints that are A or AA
checkpoints: SCs
.filter(sc => (sc.level === "A" || sc.level === "AA" || sc.level === "NA") && (sc.wcagType === "2.0" || sc.wcagType === "2.1" || sc.wcagType === "2.2" || sc.wcagType === "NA"))
Expand All @@ -127,7 +127,7 @@ export let a11yRulesets: Guideline[] = [
},
{
id: "IBM_Accessibility_next",
name: "IBM Accessibility 7.3",
name: "IBM Accessibility 7.3 preview",
category: eGuidelineCategory.ACCESSIBILITY,
description: "Rules for WCAG 2.0, 2.1, 2.2 A and AA plus additional IBM supplemental requirements.",
// This ruleset has all 2.0 and 2.1 checkpoints that are A or AA
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export class QuickGuideACApp extends React.Component<{}, quickGuideACAppState> {
Select one of the following:</p>
<UnorderedList>
<ListItem><strong>IBM Accessibility 7.2</strong>: includes checking against WCAG 2.1 plus additional IBM requirements</ListItem>
<ListItem><strong>IBM Accessibility 7.3</strong>: includes checking against WCAG 2.2 plus additional IBM requirements. This will be the default starting Oct 1, 2024.</ListItem>
<ListItem><strong>IBM Accessibility 7.3</strong>: includes checking against WCAG 2.2 plus additional IBM requirements. Default Oct 1, 2024.</ListItem>
<ListItem><strong>WCAG 2.2 (A, AA)</strong>: this is the latest W3C specification. Content that conforms to WCAG 2.2 also conforms to WCAG 2.1 and 2.0</ListItem>
<ListItem><strong>WCAG 2.1 (A, AA)</strong>: referenced by EN 301 549 and other policies, but not the latest W3C specification</ListItem>
<ListItem><strong>WCAG 2.0 (A, AA)</strong>: referenced by US Section 508</ListItem>
Expand Down
2 changes: 1 addition & 1 deletion accessibility-checker-extension/src/ts/docs/UsingACApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ class UsingACApp extends React.Component<{}, UsingACAppState> {
</p>
<UnorderedList>
<ListItem><strong>IBM Accessibility 7.2</strong>: includes checking against WCAG 2.1 plus additional IBM requirements.</ListItem>
<ListItem><strong>IBM Accessibility 7.3</strong>: includes checking against WCAG 2.2 plus additional IBM requirements. This will be the default starting Oct 1, 2024.</ListItem>
<ListItem><strong>IBM Accessibility 7.3</strong>: includes checking against WCAG 2.2 plus additional IBM requirements. Default Oct 1, 2024.</ListItem>
<ListItem><strong>WCAG 2.2 (A, AA)</strong>: this is the latest W3C specification with no additional IBM requirements. Content that conforms to WCAG 2.2 also conforms to WCAG 2.1 and 2.0.</ListItem>
<ListItem><strong>WCAG 2.1 (A, AA)</strong>: referenced by earlier versions of EN 301 549 and other policies, but not the latest W3C specification. Content that conforms to WCAG 2.1 also conforms to WCAG 2.0.</ListItem>
<ListItem><strong>WCAG 2.0 (A, AA)</strong>: referenced by US Section 508.</ListItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ export class OptionsApp extends React.Component<{}, OptionsAppState> {
}).bind(this)}
>
<p style={{ maxWidth: "100%" }}><strong>IBM Accessibility 7.2</strong>: Rules for WCAG 2.1 plus additional IBM requirements.</p>
<p style={{ maxWidth: "100%" }}><strong>IBM Accessibility 7.3</strong>: Rules for WCAG 2.2 plus additional IBM requirements. This will be the default starting Oct 1, 2024.</p>
<p style={{ maxWidth: "100%" }}><strong>IBM Accessibility 7.3</strong>: Rules for WCAG 2.2 plus additional IBM requirements. Default Oct 1, 2024.</p>
<p style={{ maxWidth: "100%" }}><strong>WCAG 2.2 (A, AA)</strong>: Rules for the latest W3C specification. Content that conforms to WCAG 2.2 also conforms to 2.1 and 2.0.</p>
<p style={{ maxWidth: "100%" }}><strong>WCAG 2.1 (A, AA)</strong>: Content that conforms to WCAG 2.1 also conforms to WCAG 2.0. Referenced by EN 301 549 and other policies, but not the latest W3C specification.</p>
<p style={{ maxWidth: "100%" }}><strong>WCAG 2.0 (A, AA)</strong>: Referenced by US Section 508, but not the latest W3C specification.</p>
Expand Down
Loading
Loading