Skip to content

Improve colorblind mode - #18

Open
Copilot wants to merge 1 commit into
mainfrom
copilot/improve-colorblind-mode
Open

Improve colorblind mode#18
Copilot wants to merge 1 commit into
mainfrom
copilot/improve-colorblind-mode

Conversation

Copilot AI commented Aug 7, 2026

Copy link
Copy Markdown

Summary

This repo had no colorblind mode at all — just a fixed green/yellow/gray tile scheme, which is one of the hardest color combinations for deuteranopia/protanopia (the most common forms of color vision deficiency).

Changes

  • Toggle: Added a "Colorblind" button in the header, persisted via localStorage so the preference survives reloads.
  • Better palette: In colorblind mode, tile colors swap from green/yellow to a blue/orange scheme, which stays distinguishable across the common types of color vision deficiency (including tritanopia).
  • Non-color cues: Beyond just swapping colors, tiles now also get a shape indicator in colorblind mode — a filled circle for "correct" and a diamond for "misplaced" — so game state never depends on color perception alone.
  • Screen reader support: Added aria-label on guess cells reflecting their status (correct/misplaced/incorrect).

Testing

  • npm run build succeeds.
  • Verified visually in a headless browser: toggled colorblind mode on/off and confirmed the palette and shape cues render correctly (see screenshots in the session channel).

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

- Add a persistent toggle in the header (saved to localStorage)
- Swap green/yellow tile colors for a blue/orange colorblind-safe
  palette (the combination hardest to distinguish for the most
  common types of color vision deficiency)
- Add shape cues (filled circle for correct, diamond for misplaced)
  on tiles in colorblind mode so state doesn't rely on color alone
- Add aria-label status text to guess cells for screen readers

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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