The reading-font button was the dimmest control on the page - #16
Merged
Merged
Conversation
js/dyslexia-font.js sets `opacity: var(--dys-idle-opacity, .72)` on #dys-font-btn. That composites whatever ink the surrounding bar uses down by 28%. Measured on pinpointventures, where the bar's ink is #4b5563 at 6.41:1, the idle button came out #7d858f: 3.73:1, under AA. The comment above that rule argues, at length and correctly, that leaving the site's own ink alone is the one version that cannot go wrong, because it is the ink the site already chose for that bar. Then it takes 28% off it, which undoes exactly that guarantee. A control that exists so people who find text hard to read can read it should not be the hardest thing on the page to read. The default is 1 now. The idle/on distinction already rode on the border and the accent wash, plus OpenDyslexic in the label and aria-pressed for anyone who cannot see either, so nothing is lost by not dimming it. This file is copied into 18 repositories. Seventeen were byte-identical and one, JanVayu's, was ahead: it carries a 44px minimum touch target (WCAG 2.5.5 Target Size) and a placement option that the other seventeen never received. Both improvements are merged, and all 18 copies now hold the same file. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MrvR2NXsJFVRCeJZFCPuNL
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.
What does this PR do?
The dyslexia-font toggle — the one control a reader who needs it is looking for — was painted at the lowest contrast on the page.
Type of change
Checklist
npm ci && npm run buildcleanCommits
🤖 Generated with Claude Code
https://claude.ai/code/session_01MrvR2NXsJFVRCeJZFCPuNL
Generated by Claude Code