Skip to content

Commit

Permalink
Update WCAG 2.1 URLs to 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
younglim committed Feb 5, 2025
1 parent 125dd65 commit 662c90e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
50 changes: 25 additions & 25 deletions src/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,33 +306,33 @@ export const sitemapPaths = [

// Remember to update getWcagPassPercentage() in src/utils/utils.ts if you change this
const wcagLinks = {
'WCAG 1.1.1': 'https://www.w3.org/TR/WCAG21/#non-text-content',
'WCAG 1.2.2': 'https://www.w3.org/TR/WCAG21/#captions-prerecorded',
'WCAG 1.3.1': 'https://www.w3.org/TR/WCAG21/#info-and-relationships',
// 'WCAG 1.3.4': 'https://www.w3.org/TR/WCAG21/#orientation', - TODO: review for veraPDF
'WCAG 1.3.5': 'https://www.w3.org/TR/WCAG21/#use-of-color',
'WCAG 1.4.1': 'https://www.w3.org/TR/WCAG21/#use-of-color',
'WCAG 1.4.2': 'https://www.w3.org/TR/WCAG21/#audio-control',
'WCAG 1.4.3': 'https://www.w3.org/TR/WCAG21/#contrast-minimum',
'WCAG 1.4.4': 'https://www.w3.org/TR/WCAG21/#resize-text',
'WCAG 1.4.6': 'https://www.w3.org/TR/WCAG21/#contrast-enhanced', // AAA
// 'WCAG 1.4.10': 'https://www.w3.org/TR/WCAG21/#reflow', - TODO: review for veraPDF
'WCAG 1.4.12': 'https://www.w3.org/TR/WCAG21/#text-spacing',
'WCAG 2.1.1': 'https://www.w3.org/TR/WCAG21/#pause-stop-hide',
'WCAG 2.2.1': 'https://www.w3.org/TR/WCAG21/#timing-adjustable',
'WCAG 2.2.2': 'https://www.w3.org/TR/WCAG21/#pause-stop-hide',
'WCAG 2.2.4': 'https://www.w3.org/TR/WCAG21/#interruptions', // AAA
'WCAG 2.4.1': 'https://www.w3.org/TR/WCAG21/#bypass-blocks',
'WCAG 2.4.2': 'https://www.w3.org/TR/WCAG21/#page-titled',
'WCAG 2.4.4': 'https://www.w3.org/TR/WCAG21/#link-purpose-in-context',
'WCAG 2.4.9': 'https://www.w3.org/TR/WCAG21/#link-purpose-link-only', // AAA
'WCAG 1.1.1': 'https://www.w3.org/TR/WCAG22/#non-text-content',
'WCAG 1.2.2': 'https://www.w3.org/TR/WCAG22/#captions-prerecorded',
'WCAG 1.3.1': 'https://www.w3.org/TR/WCAG22/#info-and-relationships',
// 'WCAG 1.3.4': 'https://www.w3.org/TR/WCAG22/#orientation', - TODO: review for veraPDF
'WCAG 1.3.5': 'https://www.w3.org/TR/WCAG22/#use-of-color',
'WCAG 1.4.1': 'https://www.w3.org/TR/WCAG22/#use-of-color',
'WCAG 1.4.2': 'https://www.w3.org/TR/WCAG22/#audio-control',
'WCAG 1.4.3': 'https://www.w3.org/TR/WCAG22/#contrast-minimum',
'WCAG 1.4.4': 'https://www.w3.org/TR/WCAG22/#resize-text',
'WCAG 1.4.6': 'https://www.w3.org/TR/WCAG22/#contrast-enhanced', // AAA
// 'WCAG 1.4.10': 'https://www.w3.org/TR/WCAG22/#reflow', - TODO: review for veraPDF
'WCAG 1.4.12': 'https://www.w3.org/TR/WCAG22/#text-spacing',
'WCAG 2.1.1': 'https://www.w3.org/TR/WCAG22/#pause-stop-hide',
'WCAG 2.2.1': 'https://www.w3.org/TR/WCAG22/#timing-adjustable',
'WCAG 2.2.2': 'https://www.w3.org/TR/WCAG22/#pause-stop-hide',
'WCAG 2.2.4': 'https://www.w3.org/TR/WCAG22/#interruptions', // AAA
'WCAG 2.4.1': 'https://www.w3.org/TR/WCAG22/#bypass-blocks',
'WCAG 2.4.2': 'https://www.w3.org/TR/WCAG22/#page-titled',
'WCAG 2.4.4': 'https://www.w3.org/TR/WCAG22/#link-purpose-in-context',
'WCAG 2.4.9': 'https://www.w3.org/TR/WCAG22/#link-purpose-link-only', // AAA
'WCAG 2.5.8': 'https://www.w3.org/TR/WCAG22/#target-size-minimum',
'WCAG 3.1.1': 'https://www.w3.org/TR/WCAG21/#language-of-page',
'WCAG 3.1.2': 'https://www.w3.org/TR/WCAG21/#labels-or-instructions',
'WCAG 3.1.1': 'https://www.w3.org/TR/WCAG22/#language-of-page',
'WCAG 3.1.2': 'https://www.w3.org/TR/WCAG22/#labels-or-instructions',
'WCAG 3.1.5': 'https://www.w3.org/TR/WCAG22/#reading-level', // AAA
'WCAG 3.2.5': 'https://www.w3.org/TR/WCAG21/#change-on-request', // AAA
'WCAG 3.2.5': 'https://www.w3.org/TR/WCAG22/#change-on-request', // AAA
'WCAG 3.3.2': 'https://www.w3.org/TR/WCAG22/#labels-or-instructions',
'WCAG 4.1.2': 'https://www.w3.org/TR/WCAG21/#name-role-value',
'WCAG 4.1.2': 'https://www.w3.org/TR/WCAG22/#name-role-value',
};

const urlCheckStatuses = {
Expand Down Expand Up @@ -425,7 +425,7 @@ export default {
};

export const rootPath = dirname;
export const wcagWebPage = 'https://www.w3.org/TR/WCAG21/';
export const wcagWebPage = 'https://www.w3.org/TR/WCAG22/';
const latestAxeVersion = '4.9';
export const axeVersion = latestAxeVersion;
export const axeWebPage = `https://dequeuniversity.com/rules/axe/${latestAxeVersion}/`;
Expand Down
8 changes: 4 additions & 4 deletions src/static/ejs/partials/scripts/ruleOffcanvas.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ category summary is clicked %>
wcag142: 'https://www.w3.org/TR/WCAG22/#audio-control',
wcag143: 'https://www.w3.org/TR/WCAG22/#contrast-minimum',
wcag144: 'https://www.w3.org/TR/WCAG22/#resize-text',
wcag146: 'https://www.w3.org/TR/WCAG21/#contrast-enhanced', // AAA
wcag146: 'https://www.w3.org/TR/WCAG22/#contrast-enhanced', // AAA
// wcag1410: 'https://www.w3.org/TR/WCAG22/#reflow',
wcag1412: 'https://www.w3.org/TR/WCAG22/#text-spacing',
wcag211: 'https://www.w3.org/TR/WCAG22/#keyboard',
wcag221: 'https://www.w3.org/TR/WCAG22/#timing-adjustable',
wcag222: 'https://www.w3.org/TR/WCAG22/#pause-stop-hide',
wcag224: 'https://www.w3.org/TR/WCAG21/#interruptions', // AAA
wcag224: 'https://www.w3.org/TR/WCAG22/#interruptions', // AAA
wcag241: 'https://www.w3.org/TR/WCAG22/#bypass-blocks',
wcag242: 'https://www.w3.org/TR/WCAG22/#page-titled',
wcag244: 'https://www.w3.org/TR/WCAG22/#link-purpose-in-context',
wcag249: 'https://www.w3.org/TR/WCAG21/#link-purpose-link-only', // AAA
wcag249: 'https://www.w3.org/TR/WCAG22/#link-purpose-link-only', // AAA
wcag258: 'https://www.w3.org/TR/WCAG22/#target-size-minimum',
wcag311: 'https://www.w3.org/TR/WCAG22/#language-of-page',
wcag312: 'https://www.w3.org/TR/WCAG22/#language-of-parts',
wcag315: 'https://www.w3.org/TR/WCAG22/#reading-level', // AAA
wcag325: 'https://www.w3.org/TR/WCAG21/#change-on-request', // AAA
wcag325: 'https://www.w3.org/TR/WCAG22/#change-on-request', // AAA
wcag332: 'https://www.w3.org/TR/WCAG22/#labels-or-instructions',
wcag412: 'https://www.w3.org/TR/WCAG22/#name-role-value',
};
Expand Down

0 comments on commit 662c90e

Please sign in to comment.