Skip to content

The reading-font button was the dimmest control on the page - #16

Merged
Varnasr merged 1 commit into
mainfrom
claude/outdated-repos-maintenance-nbxnae
Sep 23, 2026
Merged

Varnasr merged 1 commit into
mainfrom
claude/outdated-repos-maintenance-nbxnae

Conversation

@Varnasr

@Varnasr Varnasr commented Sep 23, 2026

Copy link
Copy Markdown
Owner

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

  • Bug fix
  • Accessibility improvement

Checklist

  • npm ci && npm run build clean
  • Measured at 390x844 and 1280x900

Commits

  • Fix: the reading-font button was the dimmest control on the page

🤖 Generated with Claude Code

https://claude.ai/code/session_01MrvR2NXsJFVRCeJZFCPuNL


Generated by Claude Code

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
@Varnasr
Varnasr merged commit 39c0447 into main Sep 23, 2026
1 check passed
@Varnasr
Varnasr deleted the claude/outdated-repos-maintenance-nbxnae branch September 23, 2026 16:47
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.

2 participants