Skip to content

fix(a11y): keep achievement labels readable on unearned tiles - #9

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/achievement-label-contrast
Jul 6, 2026
Merged

fix(a11y): keep achievement labels readable on unearned tiles#9
github-actions[bot] merged 1 commit into
mainfrom
fix/achievement-label-contrast

Conversation

@jsolly

@jsolly jsolly commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Lighthouse a11y 95→100: the unearned-achievement tiles applied opacity-40 to the whole tile, compositing the tiny labels to #c7c7c7 on white (1.69:1 — fails color-contrast on all 12 tiles). Now only the icon is dimmed (grayscale + opacity-40); labels keep full-opacity text-muted-foreground (≈4.7:1). Visual dimming of unearned tiles is preserved via the grayed icon and missing card background.

🤖 Generated with Claude Code

Tile-level opacity-40 composited the 0.6rem labels to #c7c7c7 on white
(1.69:1 contrast, fails WCAG AA / Lighthouse color-contrast on 12 nodes).
Dim only the icon (grayscale + opacity-40); the label stays full-opacity
text-muted-foreground (4.7:1).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions
github-actions Bot merged commit 29abdd5 into main Jul 6, 2026
4 checks passed
@jsolly
jsolly deleted the fix/achievement-label-contrast branch July 15, 2026 17:26
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.

1 participant