mirror of
https://github.com/openclaw/openclaw.ai.git
synced 2026-07-15 12:25:40 -04:00
[PR #34] [CLOSED] fix: resolve WCAG AA color contrast violations #39
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/openclaw/openclaw.ai/pull/34
Author: @huangkevin-apr
Created: 1/31/2026
Status: ❌ Closed
Base:
main← Head:fix-a11y-contrast📝 Commits (1)
810b675Fix WCAG AA Color Contrast Violations📊 Changes
2 files changed (+8 additions, -9 deletions)
View changed files
📝
src/layouts/Layout.astro(+1 -1)📝
src/pages/index.astro(+7 -8)📄 Description
Summary
This PR addresses 19 accessibility violations detected by IBM A11Y Checker related to insufficient color contrast ratios. All changes ensure text elements meet WCAG AA requirements for contrast against their backgrounds.
Problem
The IBM A11Y Checker identified multiple instances where text contrast ratios failed to meet WCAG AA standards (minimum 4.5:1 for normal text, 3:1 for large text). These violations impact readability and accessibility for users with visual impairments or color vision deficiencies.

Why is this important?
When text and its background colors have less than a 4.5 to 1 contrast ratio it can be difficult for people with moderately low vision to read the text without contrast-enhancing technology. For larger text of 18 point or more or bold 14 point text, the text and background colors must give at least a 3 to 1 contrast ratio.
Solution
Updated color values throughout the codebase to improve contrast ratios:
--text-mutedBase Color#5a6480→#96a1c0src/layouts/Layout.astro--text-secondaryReplaced several instances of
--text-mutedwith--text-secondaryfor better visibility:.cta-sub).feature-desc).pm-btn,.hackable-btn,.os-btn,.win-shell-btn).install-option).footer .disclaimer)opacity: 0.7which further reduced contrastwhite→var(--bg-deep).latest-badgeTesting
All changes have been validated to ensure:
✅ Text contrast ratios meet WCAG AA requirements
✅ Visual hierarchy remains clear and intentional
Fix Before: 19 Violations

Fix After: All 19 Violations have been resolved
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.