Skip to content

Commit

Permalink
update the rule #1674
Browse files Browse the repository at this point in the history
  • Loading branch information
shunguoy committed Nov 1, 2023
1 parent 33b8d1f commit 7b22e46
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
}],
act: [],
run: (context: RuleContext, options?: {}, contextHierarchies?: RuleContextHierarchy): RuleResult | RuleResult[] => {
const ruleContext = context["dom"].node as HTMLElement; console.log("target_spacing_sufficient invoked!!!!");
const ruleContext = context["dom"].node as HTMLElement;
const nodeName = ruleContext.nodeName.toLocaleLowerCase();
//ignore certain elements
if (RPTUtil.getAncestor(ruleContext, ["svg", "pre", "code", "script", "meta", 'head']) !== null
Expand Down
12 changes: 12 additions & 0 deletions accessibility-checker-engine/src/v4/sc-urls.json
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,18 @@
"level": "AAA",
"wcagType": "2.1"
},
"2.5.8": {
"num": "2.5.8",
"url": "https://w3c.github.io/wcag/guidelines/22/#target-size-minimum",
"scId": "WCAG2:minimum-target-size",
"scAltId": [],
"test": "WCAG2:WCAG2:minimum-target-size",
"howToMeetUrl": "https://w3c.github.io/wcag/understanding/target-size-minimum.html",
"understandingUrl": "https://w3c.github.io/wcag/understanding/target-size-minimum.html",
"handle": "Minimum Target Size",
"level": "AA",
"wcagType": "2.2"
},
"3.1.1": {
"num": "3.1.1",
"url": "https://www.w3.org/TR/WCAG21/#language-of-page",
Expand Down

0 comments on commit 7b22e46

Please sign in to comment.