Skip to content

Commit d7f25de

Browse files
author
zengfr
committed
fix(governance): enforce accessibility quality gates
1 parent 550975f commit d7f25de

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

tests/a11y/home.spec.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ for (const locale of LOCALES) {
3131
// Run axe with WCAG 2.1 AA + best practices tags.
3232
const results = await new AxeBuilder({ page })
3333
.withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa', 'best-practice'])
34-
// Disable color-contrast at the rule level: dark duotone hero has
35-
// intentional low-contrast decorative gradients (Stage 2 design).
36-
// Real text contrast is verified by Lighthouse audit (governance workflow).
37-
.disableRules(['color-contrast'])
3834
.analyze();
3935

4036
const serious = results.violations.filter(

website/.lighthouserc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = {
3737
assertions: {
3838
'categories:performance': ['error', { minScore: 0.90 }],
3939
'categories:accessibility': ['error', { minScore: 0.95 }],
40-
'categories:best-practices': ['warn', { minScore: 0.95 }], // warn until baseline is stable
40+
'categories:best-practices': ['error', { minScore: 0.95 }],
4141
'categories:seo': ['error', { minScore: 0.95 }],
4242
},
4343
},

0 commit comments

Comments
 (0)