fix(a11y): keep achievement labels readable on unearned tiles - #9
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lighthouse a11y 95→100: the unearned-achievement tiles applied
opacity-40to 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-opacitytext-muted-foreground(≈4.7:1). Visual dimming of unearned tiles is preserved via the grayed icon and missing card background.🤖 Generated with Claude Code