Accessibility: reading mode for every page, full color blind palettes (v1.12.1-accessibility) #26

Merged
ngu-git-admin merged 4 commits from accessibility into main 2026-10-04 04:30:55 +01:00

Summary

  • Reading mode is a reader view (ReaderView.tsx): the page renders hidden and its headings, paragraphs, links and described pictures are written out in one column. It reads icon-only links, puts a card's link on its first line, gives rows of facts or links one line each, keeps line breaks and #link targets, skips what CSS hides, and turns forms into one notice line.
  • Text versions (useReadingMode()) where the reader can't cope: hero, pathfinder, stats, front page history, event lists, calendar (next six weeks), featured cards, org lists and groups map, history timeline, schedules, people tiles, videos. The countdown is left out.
  • Color blind modes swap all three palette families (teal, green, amber); palette hexes in components and CSS are var(--pal-<family>-<shade>).
  • Other fixes: reading mode is wider (60rem) with bold headings; the groups map fits a phone; record pages lose their fixed back links; org names are linked headings; heading levels fixed; Giving links the treasurer's email.

No migrations. Not yet checked in a browser.

🤖 Generated with Claude Code

## Summary - **Reading mode is a reader view** (`ReaderView.tsx`): the page renders hidden and its headings, paragraphs, links and described pictures are written out in one column. It reads icon-only links, puts a card's link on its first line, gives rows of facts or links one line each, keeps line breaks and #link targets, skips what CSS hides, and turns forms into one notice line. - **Text versions** (`useReadingMode()`) where the reader can't cope: hero, pathfinder, stats, front page history, event lists, calendar (next six weeks), featured cards, org lists and groups map, history timeline, schedules, people tiles, videos. The countdown is left out. - **Color blind modes swap all three palette families** (teal, green, amber); palette hexes in components and CSS are `var(--pal-<family>-<shade>)`. - **Other fixes:** reading mode is wider (60rem) with bold headings; the groups map fits a phone; record pages lose their fixed back links; org names are linked headings; heading levels fixed; Giving links the treasurer's email. No migrations. Not yet checked in a browser. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ngu-git-admin added 4 commits 2026-10-04 04:30:44 +01:00
- Reading mode is now a reader view (ReaderView.tsx): the page renders
  hidden and its headings, paragraphs, links and described pictures
  are written out in one column, with no header, backdrop or footer.
- Color blind modes swap all three color families (teal, green,
  amber); palette hexes in components and CSS are now
  var(--pal-<family>-<shade>) so the modes reach them.
- CLAUDE.md and docs/updating-data-in-code.md describe both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Reading mode: parts the page draws on their own lines get a space
  between them, so words no longer run together; the column is 60rem
  (was 42rem) and headings are bold in the display face.
- Local groups map scales to its column on a phone instead of holding
  34rem and scrolling sideways.
- Group, region, partner and team pages drop their fixed back link
  (records are reached from many pages); orgListHref is gone.
  Not-found pages keep theirs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Stats: one line per number, no longer stuck at 0 (the count waited
  for the band to scroll into view, which the hidden page never
  does); reduced motion shows the numbers at once too.
- Calendar: the next six weeks from today as a list (date, linked
  title, time, type, place), wherever a calendar is drawn.
- Featured cards: a linked heading and its words each; a video card
  links to its video.
- Countdown: left out, the retreats band shows the same event.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reader (ReaderView.tsx) now reads an icon-only link's label, puts
a card's link on its first line or picture when it has no heading,
gives each item of a row of facts or links its own line, keeps line
breaks, skips what CSS hides, turns a form into one line saying it
can't be used there, shows empty table cells as "-", keeps section and
heading ids so #links land, and opens file links as files.

What it can't read draws its own text version (useReadingMode()):
the hero, pathfinder, front page history, event lists (every event,
past ones too), org lists and groups map (every region and group,
linked), history timeline (every year open), schedules (every day,
fold-outs included), people tiles (everyone, with details) and videos.

Also: org names are linked headings, heading levels fixed where cards
repeated their section's, Team pages lose the doubled "Members",
Giving links the treasurer's email and names Church Center.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ngu-git-admin merged commit 07e56bfd20 into main 2026-10-04 04:30:55 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ngu-git-admin/NGU-Web#26
No description provided.