Skip to content

fix(a11y): darken brand primary to pass WCAG AA color-contrast, re-enable axe rule#47

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-color-contrast-issues
Draft

fix(a11y): darken brand primary to pass WCAG AA color-contrast, re-enable axe rule#47
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-color-contrast-issues

Conversation

Copilot AI commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

--color-primary: #3B7DD8 failed WCAG AA on both white (4.11:1) and the #F4F7FA page background (3.82:1), causing the color-contrast axe rule to be permanently disabled in the Phase 4 accessibility gate.

Palette changes

Token Before After Ratio on white Ratio on #F4F7FA
--color-primary #3B7DD8 #2D63B0 5.96:1 ✅ 5.54:1 ✅
--color-primary-dark #2A5FA8 #1F4E8C 8.30:1 ✅
--color-info #3B7DD8 #2D63B0 5.96:1 ✅

--color-text-muted: #5A6380 was already at 5.53:1 on #F4F7FA — unchanged.

Propagation

  • All hardcoded #3B7DD8 CSS-var fallbacks (var(--color-primary, #3B7DD8)) updated across 27 Vue/TS component files
  • rgba(59, 125, 216, X) tint references → rgba(45, 99, 176, X) throughout frontend and docs
  • docs/cookies.html, docs/impressum.html, docs/datenschutz.html, docs/index.html updated (inline --color-primary + --color-primary-hover vars)

Accessibility gate

Removed all three .disableRules(['color-contrast']) calls and their associated comment blocks from e2e/tests/phase4-accessibility.spec.ts. The gate now runs the full wcag2a/wcag2aa rule set including color-contrast.

…axe color-contrast rule

- --color-primary: #3B7DD8 → #2D63B0 (5.96:1 on white, 5.54:1 on #F4F7FA)
- --color-primary-dark: #2A5FA8 → #1F4E8C (maintain hover differentiation)
- --color-info: #3B7DD8 → #2D63B0
- All hardcoded #3B7DD8 fallbacks and rgba(59,125,216,X) tints updated
- docs HTML files updated (cookies, index, impressum, datenschutz)
- Remove .disableRules(['color-contrast']) from phase4-accessibility.spec.ts

Closes #38
Copilot AI changed the title [WIP] Fix brand palette color contrast for accessibility fix(a11y): darken brand primary to pass WCAG AA color-contrast, re-enable axe rule Jun 15, 2026
Copilot AI requested a review from raffelino June 15, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants