Skip to content

Commit 65746e5

Browse files
committed
Uncommented the wcag validation
1 parent d63fbe2 commit 65746e5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

build/tasks/validate.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,13 +411,9 @@ function findTagIssues(tags) {
411411
}
412412
if (standardTags.length === 0) {
413413
issues.push(`Expected one ${name} tag, got 0`);
414+
} else if (standardTags.length > 1) {
415+
issues.push(`Expected one ${name} tag, got: ${standardTags.join(', ')}`);
414416
}
415-
// Commented out this part allowing multiple wcag rules.
416-
// This is because we have multiple WCAG rules for different levels.
417-
418-
// else if (standardTags.length > 1) {
419-
// issues.push(`Expected one ${name} tag, got: ${standardTags.join(', ')}`);
420-
// }
421417
if (criterionTags.length === 0) {
422418
issues.push(`Expected at least one ${name} criterion tag, got 0`);
423419
}

0 commit comments

Comments
 (0)