Skip to content

fix(components): text and button colour pairings fail the 4.5:1 AA bar - #199

Merged
sydevs-bot merged 27 commits into
mainfrom
claude/fix-179-a11y-contrast
Nov 18, 2026
Merged

sydevs-bot merged 27 commits into
mainfrom
claude/fix-179-a11y-contrast

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Every text and fill pairing drawn for normal-size text on a light surface now clears 4.5:1.
  • Three palette values are retuned to the lightest value of their own hue and saturation that
    reaches the bar, so the brand stays as close as AA allows. Every role keeps the step it named.
  • A line scan found seven pairings the ticket's table missed; two guards keep all of them there.
  • StorySection surface="dark" drew white text on the page's white background — joined, same files.
  • Every lintable file in this PR's diff is swept with eslint --fix, Ardnived's option A: 1,037
    warnings to 24. chore(deps): move off the end-of-life eslint 9 line #251 then upgraded eslint on main, whose new rules put 19 back. All 43 are
    named below with the reason each one stays.
  • The form placeholder stays at gray-500, Ardnived's option B: a named exception to the bar
    rather than a pairing that meets it, because darkening it makes an empty field read as filled
    in. The guard's EXEMPT map and DESIGN_SYSTEM.md both say so in those words.
  • Seven more link and icon call sites still carried the frozen palette's teal-700, which the
    retune makes unnecessary. They are back at main's teal-600.
  • FormField computed an aria-describedby and dropped it, so a field's description and error
    reached no control. Joined: a swept file, the same AA bar, and the lint sweep is what found it.
  • Smoke (ladle) read the deleted Pages preview and went red. That fix is no longer here: fix(column-carousel): a dot's 44px hit area is stolen by its neighbour #201
    landed the same repair on main first, and the merge at 24410d9 takes its side.

Change outline

Behaviour — three retuned values, not frozen ones

#179 decision 1 froze the palette, so each failing role jumped to the next declared step and
overshot by 1.0 to 5.5 ratio points. Ardnived asked for the brand back, so the three failing
values move instead, each to the lightest value of its own hue and saturation that clears 4.5:1
on white and on gray-100, the tint the tree paints under text 35 times. That reopens
decision 1 as question 1 on #179.

 layouts/tailwind.css  @theme
-  --color-gray-700:  #7b7b7b   4.23:1 on white
+  --color-gray-700:  #717171   4.88:1          # 4.52:1 on gray-100
-  --color-teal-600:  #4c8d84   3.85:1
+  --color-teal-600:  #427b73   4.87:1          # 4.51:1 on gray-100
-  --color-error:     #cc5e5e   3.94:1
+  --color-error:     #c34040   5.09:1          # 4.52:1 on bg-error/10
-  --color-success:   #4c8d84
+  --color-success:   #427b73                   # documented to equal teal-600

The roles then keep the steps main already names:

 layouts/tailwind.css  @utility surface-light
   --surface-fg-muted:        gray-700    4.88:1 on white
   --surface-primary:         teal-600    4.87:1
   --surface-primary-strong:  teal-700    5.50:1
-  --surface-on-highlight:    gray-700    3.50:1 on bg-highlight
+  --surface-on-highlight:    gray-800    4.53:1   # the one row the retune cannot reach
   --surface-ring:            teal-600    4.87:1 on its white band — a UI component, at 3:1
 components/atoms/Button/Button.tsx   both variant maps
-  primary    bg-teal-500   hover teal-600   active teal-700     white at 2.70:1
+  primary    bg-teal-600   hover teal-700   active teal-800     white at 4.87:1
-  secondary  bg-coral-500  hover coral-600  active coral-700    white at 2.53:1
+  secondary  bg-coral-600  hover coral-700  active coral-800    white at 4.69:1
   neutral    text-gray-700                                      4.88:1

coral-600 #c54d2e is already one lightness point off its own minimum, so the secondary fill
cannot come back any further and stay at AA.

Behaviour — the call sites that still move

Only the two greys with nowhere to go. text-gray-700, text-teal-600 and text-error are
untouched from main at every site. Seven of those teal sites lagged the retune, still reading
the frozen palette's text-teal-700 hover:text-teal-800; they are back at main's steps, which
teal-600 #427b73 now clears at 4.87:1. SubtleSystem.tsx:253 already read teal-600, which
is what showed the revert had been partial.

-  text-gray-600  2.71:1 │ text-gray-500  2.33:1
+  text-gray-700  4.88:1

Two pairings keep a deeper step because the fill beside them demands it: Avatar's neutral
label on bg-gray-200 stays gray-800 (5.29:1), and Playlist's current track stays
bg-teal-700, because its text-teal-50 credit reaches 4.92:1 there and only 4.35:1 on
teal-600.

Behaviour — pairings the ticket's table did not list

Each is a component painting a fill and a label itself, so no surface token resolves it.

 components/atoms/Avatar/Avatar.tsx          initials on a brand fill
-  primary bg-teal-500 / secondary bg-coral-500 + text-white      2.70:1 / 2.53:1
+  primary bg-teal-600 / secondary bg-coral-600                   4.87:1 / 4.69:1
 components/molecules/Playlist/Playlist.tsx  the current track's row
-  bg-teal-600 text-white                                         3.85:1
+  bg-teal-700 text-white                                         5.50:1
-    text-teal-100 for the credit and the duration                3.95:1 on teal-700
+    text-teal-50                                                 4.92:1
 components/atoms/graphics/SocialIcon        secondary icon, at the 3:1 icon bar
-  text-coral-500                                                 2.53:1
+  text-coral-600                                                 4.69:1
 components/organisms/MeditationPlayer       the volume row's text-xs sublabel
-  text-gray-400                                                  1.71:1
+  nothing — it inherits the row label's gray-700                 4.88:1

Behaviour — the form field's description and error

FormField renders <p id={id}-description> and <p id={id}-error role="alert"> as siblings of
the control, builds the aria-describedby value that would connect them, and never applies it.
A screen reader read the label and neither. The error announced once on appearance and never on
refocus. DESIGN_SYSTEM.md:377 already required the attribute.

 components/molecules/FormField/FormField.tsx
-  const ariaDescribedBy = [descriptionId, errorId]…     # computed, then dropped
+  a single element child takes it, merged with one it already carries
-  const descriptionId = description ? … : undefined
+  const descriptionId = description && !error ? … : undefined   # an error hides the description

The single-child reach is a named shortcut: beside the code. Every call site today renders one
control; a field wrapping several needs a context instead.

Behaviour — the error panels

main (#200) replaced the dead bg-error-light with bg-error/10, which composites to about
#faefef. The merge keeps that fill, and --color-error is tuned to clear 4.5:1 on it rather
than only on white, so error-dark is gone from all 11 sites.

Components — the dark story surfaces

teal-300, what the dark surface draws text-primary as, clears 4.5:1 on a 900 step and on
nothing lighter: teal-900 5.71, teal-800 3.82, gray-800 2.95. So every dark story ground
becomes one. A gradient is governed by its lighter stop, so both of its stops are 900 too.

 components/ladle/StorySection.tsx
   getBackgroundStyles(surface, background)
-    'none'      + dark  → ''                                    # white text, no ground
+    'none'      + dark  → bg-teal-900
-    'neutral'   + dark  → bg-gray-800                           teal-300 at 2.95:1
+    'neutral'   + dark  → bg-teal-900                           teal-300 at 5.71:1
-    'gradient'  + dark  → from-teal-600 to-teal-700             teal-300 at 1.80:1
+    'gradient'  + dark  → from-teal-900 to-coral-900            teal-300 at 5.71 / 5.64:1
   getTitleColor()
-    'subsection' + dark → text-gray-100         # dead, and 1.10:1 on the white page if reached
+    'subsection'        → text-gray-700
   renderContent()
-    scrollable + dark with no ground → the gradient             # now unreachable
+    scrollable → backgroundStyles || bg-white
…
 the five hand-rolled wrappers — Icon, Logo, Spinner, Button ×2 → surface-dark bg-teal-900

Files — what holds the bar from here

 tests/
 ├── _helpers/
-│   └── page-context.ts
+│   ├── contrast.ts            # WCAG contrast + the theme's hex for a step, read from tailwind.css
+│   └── page-context.ts
 └── guards/
+    └── text-contrast.test.ts  # the steps a component spells itself: Button's maps, and any
+                               # text/fill pair one class string names
 layouts/tailwind.test.ts       # + every surface-light text token clears 4.5:1 on white
 components/molecules/FormField/
+└── FormField.test.tsx         # the control names its description, its error, and neither when
+                               # there is neither

Base merge

origin/main is merged in again at 24410d9, 3 commits, six conflicts — #257, #201 and #253.

SocialIcon.tsx, AudioPlayer.tsx and ColumnCarousel.tsx — main's side. Each raw element
became an atom that already reads the token this branch retunes: Link at variant="primary"
and Button at variant="ghost", which draws text-fg-muted. SocialIcon keeps this branch's
secondary: coral-600, outside the conflict.

Link.stories.tsx — main's structure, this branch's sweep. main rewrote External Links and added
Refused Schemes; every text-gray-500 and text-gray-600 those sections brought moves to
text-gray-700.

Playlist.tsx — both sides: this branch's text-teal-50 and main's transition-colors duration-200.

scripts/get-cloudflare-preview-url.mjs and docs/cloudflare-previews-ci.md — main's side, and
this branch's RETIRED_HOST_RE goes with it. #201 narrowed PREVIEW_URL_RE to workers.dev, so
no candidate can carry a pages.dev host and the branch's later filter could never fire. main
also derives the Worker's branch host when no comment names one.

Before it, at 43e1da9, 1 commit, no conflicts — #251's eslint upgrade.
It re-dirties this PR's swept files with rules --fix cannot resolve; see Test results.

Before it, at b5c3674, 2 commits, two conflicts.

MeditationPlayer.tsx — main (#232) moved the upsell copy into t.rich translation calls; this
branch had only recoloured the paragraph that held the English strings. main's side stands, on
this branch's passing text-gray-700.

AtlasContent.tsx — main (#237) replaced the raw <a> with the Link atom. main's side stands
whole: its text-teal-600 hover:text-teal-700 passes under the retune, so the branch's
teal-700/800 is not carried over. That is one of the seven overshoot sites above.

The earlier merge at d2d2c97, 9 commits, had one conflict:
components/atoms/Image/Image.stories.tsx. main restructured the States section into
StorySection variant="subsection" blocks and added a "Failed load" one; this branch had only
recoloured the raw <p> that rewrite replaced. main's structure stands, and the recolour is not
lost: the description renders through StorySection, whose descriptionColor this branch retunes
to the passing text-gray-700. The branch's six other conversions in that file are untouched.

And before it:

Preview

Both branch aliases, read from the Cloudflare bot's comments. A branch alias always serves the
branch's newest build, so these render the retuned palette. The Ladle links are the place to judge
it. (They moved off wm-design.pages.dev, the Pages project deleted in #221, which no longer
answers.)

Ladle — every variant side by side, which is where this change is easiest to judge:

The site, on live SahajCloud content:

  • Meditate now — the primary button
  • Inspiration — cards, links and body text
  • About meditation — a long content page: body, headings, in-text links
  • Contact us — nav and buttons. Its form fields render client-side, so the validation colours need the page open, not the HTML.

Test results

  • Lean gate: ✓ .claude/skills/pr-prep/check.sh on 24410d9 — lint (0 errors), tsc --noEmit,
    vitest run: 1,060 passed, 106 files.
  • The lint sweep: 1,037 warnings to 24 over this PR's 61 lintable files, then back to 43 once
    chore(deps): move off the end-of-life eslint 9 line #251's eslint upgrade merged. Repo-wide, eslint . reports 1,106 warnings across 138 files,
    from 2,133 across 150. 0 errors throughout.
  • The 24 from the sweep: 17 no-console in stories and a CLI script, the band eslint.config.js
    downgrades to warn on purpose; 6 perfectionist/sort-jsx-props where the prop carries a
    comment — one of them a ⚠ line — so sorting orphans the comment from its prop; and
    FormField's ariaDescribedBy, which was the defect, not noise.
  • The 19 chore(deps): move off the end-of-life eslint 9 line #251 added are rules --fix cannot resolve, so a re-sweep removes none of them: 11
    no-array-index-key, 2 no-forward-ref, 2 set-state-in-effect, 2 no-clone-element, 1
    use-state, 1 exhaustive-deps. They are new across the repo, not regressions in this diff,
    and each is a design change rather than a format one. One is this PR's own cloneElement in
    FormField, the single-child shortcut: already named beside it. The 7th sort warning is
    perfectionist's stricter order on a VolumeRow prop pair that carries no comment.
  • Both guards were re-run against the retuned palette and caught one real regression on the way:
    Avatar's neutral label on bg-gray-200, which is why that one stays gray-800.
  • Build: N/A locally — no build, server or Wrangler change in the diff.
  • Security review: not run. This push touches no path in securityReview.triggerPattern.
    scripts/get-cloudflare-preview-url.mjs matched it on an earlier push; that review is still
    owed at finalize.

Manual verification

  1. Open Atoms / Button and Atoms / Link in Ladle, light and dark. The teal is back within
    four lightness points of teal-600; the coral fill cannot move and stay at AA.
  2. Body and secondary text are now the same grey, a hair darker than today's gray-700. Open
    About meditation and confirm the hierarchy still reads from weight and size alone.
  3. Form validation messages are #c34040 rather than #cc5e5e. See Atoms / Form / Input.
  4. Placeholder text stays at gray-500, 2.33:1, in Input and Textarea. See Atoms / Form / Input: an empty field must still read as empty, not as filled in.
  5. Submit Contact us with the email field empty, with a screen reader on. The validation
    message is now read as the field's description, not only as a one-off alert.

Notes for reviewer

  • The brand fills themselves. Nothing keeps teal-500 / coral-500 exactly and reaches
    4.5:1 with a white label. You kept the retune, so fix(components): text and button colour pairings fail the 4.5:1 AA bar #179's question 1 is now a decision there and
    the Button.tsx thread is resolved. The fills ship at teal-600 #427b73 (4.87:1) and
    coral-600 #c54d2e (4.69:1).
  • The deeper fix I did not take. Those raw text-gray-* call sites could become the surface
    tokens (text-fg-muted, text-primary) instead of scale steps, which is what the tokens exist
    for. Each site is a judgement about whether that text is body, muted or heading. Worth its own
    ticket.
  • tests/guards/text-contrast.test.ts reaches one line. A className run is written on one,
    so a fill painted two elements up is invisible to it — which is why Button's variant maps are
    parsed separately. Its EXEMPT map holds two pairings SC 1.4.3 exempts — the Logo brand
    mark, and TechniqueCard's number badges, which are pure decoration — and now the placeholder,
    which it marks as a deviation rather than an exemption.
  • The lint sweep stops at this PR's diff, which is option A as you chose it. So a sibling
    file can still be dirty where this PR never touched it: FormField.stories.tsx carries 126
    warnings beside the FormField.tsx this PR cleans. The remaining files are option B, and have
    no ticket yet — say the word and I will file one. The 19 warnings chore(deps): move off the end-of-life eslint 9 line #251 introduced belong with
    it: they land repo-wide, and chasing them on this diff alone would fix 19 of several hundred.
  • .claude/skills/design-extraction/SKILL.md is now stale — it names text-gray-600 and
    bg-teal-500 as the colours to extract to. .claude/ is a protected path, so an unattended run
    cannot write it. It needs an attended one-line edit.
Detail

Why gray-100 and not white alone. The critic measured each value against white, where the
minima are #767676, #458078 and #c74f4f. But muted text sits beside hover:bg-gray-100 on
35 lines, and #767676 reaches only 4.20:1 there. Tuning against gray-100 costs two further
lightness points and makes the value true wherever the tree actually paints it. gray-200,
gray-300 and teal-200 are sliders and an Avatar fill, not text grounds, bar the one
Avatar label that keeps gray-800.

--surface-on-highlight is the row the retune cannot reach. On bg-highlight teal-100
the retuned gray-700 measures 3.50:1, so that token stays at gray-800 (4.53:1).

The dark surface, measured (acceptance criterion 5). OrnateTextBox.tsx:102 paints
linear-gradient(110deg,#8a6f56,#6b5340,#473729); at its lightest stop teal-300 measures
2.19:1 and coral-300 2.94:1. Splash and ContentOverlay paint a photograph, which cannot be
measured. Neither component draws text-primary or text-secondary — both paint white
throughout — so no shipping pairing fails. The dark steps therefore stay and the stories move,
as part 6 directed. Recorded in DESIGN_SYSTEM.md's Surfaces section.

The subsection title never followed the surface. StorySection renders the title and the
description in the wrapper div, outside the ground renderContent() paints, which is what
STORYBOOK.md states. Its surface === 'dark' arm would have painted gray-100 on the white page
at 1.10:1, and nothing reached it: no story pairs variant="subsection" with surface="dark".

Closes #179

🤖 Generated with Claude Code

https://claude.ai/code/session_01Mg9rjWb856u9XStZuzpX4X

`--surface-fg-muted` drew body and nav text at gray-700, 4.23:1 on white, and
`--surface-primary` drew every link at teal-600, 3.85:1. Both sat under WCAG
2.1 SC 1.4.3's 4.5:1 for normal-size text. `--surface-on-highlight` measured
3.04:1 on the outline button's teal-100 hover fill.

`--surface-primary-strong` moves with its base so a link's hover stays darker
than the link.

The ring keeps teal-600: it is a UI component at the 3:1 bar, which it clears
on its white band, and `focus-ring`'s own assertion covers it.

Refs #179

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FdTttE2idTBaSPQCntKgak
…g step

Nine pairings the components drew for normal-size text sat under WCAG 2.1
SC 1.4.3's 4.5:1, and a line-by-line scan of the tree found seven more the
ticket's table had not listed:

- `Button`'s filled variants — white on `teal-500` 2.70:1 and `coral-500`
  2.53:1 — move to `teal-700` and `coral-600`, each with its hover and active
  steps, so a hover still darkens. The `neutral` label moves with the greys.
- `Avatar`'s initials and `Playlist`'s current-track row paint the same brand
  fills by hand, and move with them. `Playlist`'s secondary label needs
  `teal-50` to clear `teal-700`; `teal-100` reaches only 3.95:1.
- `SocialIcon`'s `secondary` drew `coral-500` at 2.53:1, under even the 3:1 an
  icon owes, and takes `coral-600` to match `--surface-secondary`.
- `MeditationPlayer`'s volume sublabel drew `gray-400` at 1.71:1.
- Every raw `text-gray-500`, `-600` and `-700` becomes `text-gray-800`: it is
  the one muted step that clears the bar, so the three collapse into it. Where
  that flattened a hover, the hover takes the next step down.
- `text-error` becomes `text-error-dark`. `--color-error` sits on no scale, and
  `error-dark` is the only declared value that passes.

`bg-error-light` names an undeclared token, so it compiled to nothing and both
panels already rendered on white, where `text-error-dark` reaches 10.01:1.
Dropping the class is what they render today; declaring the token would invent
a palette value, which decision 1 rules out.

The story wrappers move to a `900` ground. `teal-300`, what the dark surface
draws `text-primary` as, reaches 4.5:1 on `teal-900` (5.71) and on nothing
lighter — `gray-800` measures 2.95. A `surface-dark` section with no ground
drew white text on the page's white background, so it paints one now too.

Two guards cover what the surface specs cannot: the fill-and-label pair of
`Button`'s variant maps, and every grey a component names for text.

Refs #179

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FdTttE2idTBaSPQCntKgak
…'s limit

The role table records a contrast clearance again rather than only what the
components do: each row carries its ratio on white, and the three greys and
`--color-error` it dropped are named with what they still serve.

The Surfaces table follows the four `surface-light` tokens that moved, and the
dark side gets the measurement #179 asked for. `teal-300` and `coral-300` clear
4.5:1 only on a `900` step, and both fall short of it on the one dark surface
that can be measured — `OrnateTextBox`'s gradient, read at its lightest stop.
No product component draws either token, so the steps stay and the story
wrappers moved.

`.claude/skills/design-extraction/SKILL.md` names `text-gray-600` and
`bg-teal-500` as the colours to extract to. It is a protected path, so an
unattended run cannot touch it.

Refs #179

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FdTttE2idTBaSPQCntKgak
…ranch

The guard globbed and re-read every component file once per check. One scan
serves both.

`StorySection`'s scrollable variant chose a dark gradient when no background
was set. A dark surface always paints a ground now, so only the light fallback
is reachable.

Refs #179

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FdTttE2idTBaSPQCntKgak
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
wemeditate-web eae667c Commit Preview URL

Branch Preview URL
Nov 18 2026, 07:57 PM

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 question for the reviewer, one per thread.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread components/atoms/form/Input/Input.tsx Resolved
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Oct 27, 2026
@sydevs-bot

sydevs-bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running
CI fix 1

recent dispatches
  • 19:51Z resolve-conflicts · attempt 1 · session · done
  • 19:51Z resolve-conflicts · attempt 1 · session
  • 19:44Z resolve-conflicts · attempt 1 · session · done
  • 19:44Z resolve-conflicts · attempt 1 · session
  • 19:21Z resolve-conflicts · attempt 1 · session · done

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 Adversarial review

Clean on shape. The diff is #179's own approach: the 36 palette values untouched, each role moved to the step the ticket's table names, and the 91 files are the mechanical substitution part 3 asked for. Nothing is smuggled in — the new guard answers seven pairings the ticket missed, and the StorySection ground is part 6's "fix the story wrappers". No contract surface is touched.

The soft spot is the guard's EXEMPT map. Nothing measures a reason in it, so a real failure hides there — and one of its three entries is wrong today.

Findings

  • should-fix — components/ladle/StorySection.tsx:67: the dark subsection-title branch is dead, and would paint gray-100 on the white page (1.10:1) if reached.
  • should-fix — tests/guards/text-contrast.test.ts:39: that EXEMPT reason names a ground the markup does not paint, so the body's "three pairings WCAG itself exempts" is two.
  • consider — DESIGN_SYSTEM.md:373: aria-hidden is not a 1.4.3 exemption; pure decoration is.
  • consider — MeditationPlayer.tsx:167: the sublabel grey now equals its parent's.

What was checked

  • Every ratio in the body and both docs tables re-derived from tailwind.css: all 30 match, the thin gray-800 on teal-100 4.53 included.
  • #179's five acceptance criteria, each met. grep for text-gray-{500,600,700}, text-teal-600 and error-light returns nothing.
  • All three EXEMPT entries against their markup: Logo renders only LogoSvg ✓; TechniqueCard is aria-hidden ✓, with the caveat above; StorySection ✗.
  • The guard's one-line reach: Playlist's text-teal-50 sits 20 lines below its bg-teal-700, so neither spec measures it.
  • Preview /meditate-now 200: serves teal-700 and gray-800, no bg-teal-500. Ladle 200, but client-rendered.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread components/ladle/StorySection.tsx Resolved
Comment thread tests/guards/text-contrast.test.ts Resolved
Comment thread DESIGN_SYSTEM.md Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Oct 27, 2026
The title and the description render in the wrapper div, outside the
ground `renderContent()` paints, so both sit on the white page whatever
the surface is. The `surface === 'dark'` arm would have painted
`gray-100` there, 1.10:1, and no story reaches it: nothing pairs
`variant="subsection"` with `surface="dark"`.

STORYBOOK.md already states the rule this restores.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXetornRgieYowcerk
The `StorySection` entry named a ground the markup does not paint: that
grey drew the subsection title, which renders outside `renderContent()`
on the white page. The branch is gone, so the entry goes with it.

`aria-hidden` is not an SC 1.4.3 exemption either — hiding informative
text from a reader does not make it decorative. The remaining reason
names what does exempt `TechniqueCard`'s numeral: the cards' own order
already conveys the sequence, so the numeral carries no information.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXetornRgieYowcerk
SC 1.4.3 exempts pure decoration. Marking informative text
`aria-hidden` hides it from a reader without making it decorative, so
the old wording would have exempted a real failure.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXetornRgieYowcerk
The span now names the same step as the `<p>` it sits in, so the class
paints nothing of its own. `font-normal normal-case` is what
distinguishes the hint.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXetornRgieYowcerk
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Deploying wemeditate-design with  Cloudflare Pages  Cloudflare Pages

Latest commit: b48581b
Status: ✅  Deploy successful!
Preview URL: https://57102293.wm-design.pages.dev
Branch Preview URL: https://claude-fix-179-a11y-contrast.wm-design.pages.dev

View logs

@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Four critic threads, all adopted. Base already current, so no merge.

The Input.tsx placeholder question stays open. It is yours to answer.

Lean gate green on 5888b7f: lint 0 errors, tsc --noEmit, 914 specs. Body refreshed: the outline, and the EXEMPT count.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Oct 27, 2026
@sydevs-bot
sydevs-bot marked this pull request as ready for review October 27, 2026 02:38
@sydevs-bot
sydevs-bot requested a review from Ardnived October 27, 2026 02:38
@sydevs-bot
sydevs-bot enabled auto-merge October 27, 2026 02:38
@Ardnived

Copy link
Copy Markdown
Contributor

@sydevs-bot Revise. These changes have taken most of our components too far from the brand colors. The Button is a good example of this. Can we relax the requirement and bring the colors back closer.

Also, resolve the merge conflicts.

@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed awaiting labels Oct 27, 2026

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 Adversarial review

Second pass, on the revise. The brand drift is decision 1's cost, not a fault in the diff: with the 36 palette values frozen, "nearest passing step" is the only move, and the steps are coarse. Three roles overshoot by 1.0 to 5.5 ratio points. Coral does not. Nothing keeps 4.5:1 and today's colours, so relaxing the number leaves the AA bar AGENTS.md sets. Two options keep the brand close at AA.

Retune four values, reversing decision 1. Holding hue and saturation, the lightest value reaching 4.50:1 is teal #458179 (the diff ships 5.50:1), grey #777777 (6.31:1), error #c74f4f (10.01:1). coral-600 already sits one lightness point off its own minimum.

Or invert the button label, keeping both fills untouched: bg-teal-500 text-teal-900 4.51:1, bg-coral-500 text-coral-900 4.78:1, hover lightening to -400 at 5.08 / 6.21. teal-500 is 2.70:1 on the page, so the button then needs a border for SC 1.4.11.

Findings

  • blocker — Button.tsx:153: teal gives back five lightness points free. Coral cannot move and stay AA.
  • should-fix — tailwind.css:215: the link token overshoots as far; one tuned value serves it and the fill.
  • should-fix — tailwind.css:214: body grey needed one lightness point, not nine.
  • should-fix — FormField.tsx:89: error-dark is a S100% maroon at 10.01:1 where #c74f4f reaches the bar.

What was checked

  • Every ratio recomputed from tailwind.css's 36 values, each minimum bisected on HSL lightness with hue and saturation held.
  • #179's decision 1 and its move-to table against the diff: every step matches.
  • Button.tsx:186-189 — labels are text-sm / text-base, so no large-text 3:1 relief.
  • SocialIcon's coral-500 → coral-600 is forced even at the 3:1 icon bar.
  • git merge-tree origin/main: three conflicts. Not a critic's to touch.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread components/atoms/Button/Button.tsx Resolved
Comment thread layouts/tailwind.css Resolved
Comment thread layouts/tailwind.css Resolved
@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Oct 27, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 18, 2026
…ontrast

Six conflicts, from #257 (the Link atom becomes the scheme gate), #201 (the
carousel dots take their own line) and #201's own preview-discovery fix.

SocialIcon.tsx, AudioPlayer.tsx — main's side. Both raw `<a>` elements became
`Link`, whose `variant="primary"` resolves to the retuned `teal-600`, so the
colours this branch set on them are what the atom now paints. SocialIcon keeps
this branch's `secondary: coral-600`, which sits outside the conflict.

ColumnCarousel.tsx — main's side. `CarouselNavButton` became the `Button` atom
at `variant="ghost"`, which draws `text-fg-muted`, the token this branch
retunes to `gray-700`. The branch's `text-gray-600` → `text-gray-700` had no
other effect here.

Link.stories.tsx — main's structure, this branch's sweep. main rewrote the
External Links section and added Refused Schemes; every `text-gray-500` and
`text-gray-600` it brought with it moves to `text-gray-700`, the step the rest
of the file already reads.

Playlist.tsx — both sides. The credit keeps this branch's `text-teal-50`
(4.92:1 on `teal-700`) and main's `transition-colors duration-200`.

scripts/get-cloudflare-preview-url.mjs, docs/cloudflare-previews-ci.md —
main's side, and this branch's `RETIRED_HOST_RE` goes with it. #201 fixed the
same red check by narrowing `PREVIEW_URL_RE` to `workers.dev`, so no candidate
can carry a `pages.dev` host and the branch's later filter can never fire.
main also derives the Worker's branch host when no comment names one, which
this branch's version does not.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjV73qfNDBaWPzRpeBE
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Merged origin/main (3 commits) at 24410d9. Six conflicts.

The one choice worth reading: this PR's own CI fix is dropped. #201 fixed the same red Smoke (ladle) check by narrowing PREVIEW_URL_RE to workers.dev, so no candidate can carry a pages.dev host and this branch's later RETIRED_HOST_RE filter could never fire. scripts/get-cloudflare-preview-url.mjs and docs/cloudflare-previews-ci.md take main's side whole. main also derives the Worker's branch host when no comment names one.

The rest resolve the only way they can. SocialIcon, AudioPlayer and ColumnCarousel take main's side: each raw element became an atom — Link, Button variant="ghost" — that reads the token this branch retunes, so the colour survives in the atom. Playlist keeps both sides: text-teal-50 and main's transition-colors duration-200. Link.stories.tsx takes main's new sections with this branch's grey sweep applied to them.

Gate on 24410d9: lint 0 errors, tsc --noEmit clean, vitest run 1,060 passed across 106 files.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 18, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 18, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 18, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 18, 2026
…ontrast

#254 collapsed the three M:SS formatters into lib/duration. This branch had
retuned the colours around two of them, so both players conflicted.

AudioPlayer and Playlist drop their local copies and read the shared
formatter, which is main's whole point. The progress row keeps this
branch's text-gray-700: main's side still read text-gray-600, at 2.71:1.

Playlist's local copy had no !isFinite guard, so a non-finite track
duration now reads 0:00 rather than Infinity:NaN — the behaviour main
chose, and the one its Playlist.test.tsx pins.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjY2NtKzScDKCv7jxMW
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Merged origin/main at b5094d1. One commit, #254, two conflicts.

AudioPlayer.tsx and Playlist.tsx — both sides. Each drops its local M:SS formatter for main's
shared lib/duration, and the progress row keeps this branch's text-gray-700: main's side still
read text-gray-600, at 2.71:1.

Playlist's local copy carried no !isFinite guard, so a non-finite track duration now reads
0:00 rather than Infinity:NaN — main's choice, pinned by its Playlist.test.tsx.

Lean gate green on b5094d1: 0 lint errors, tsc --noEmit, 1,066 tests in 108 files.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 18, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 18, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 18, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 18, 2026
…ontrast

#207 gave `Image` and `ContentCard` a `sizes` prop and made it required on
`ContentCard`, while this branch had sorted the same prop lists and recoloured
the same stories. Four files conflicted, every one of them on that overlap, so
both sides are kept in all four.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXEpiA9teFyoetKjha
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Merged origin/main at eae667c. #207's sizes prop and this branch's prop sweep touched the
same lines, so all four conflicts are the same overlap.

  • Column.tsx — main's side is a strict superset of this branch's re-sort.
  • AudioPlayer.tsx, Image.stories.tsx — both sides; sizes takes the sorted slot beside src.
  • ContentCard.stories.tsx — rebuilt from this branch's file, then main's
    sizes={STORY_CARD_SIZES} added to all 28 cards and eslint --fix re-sorted. Hunk-by-hunk
    would have duplicated props, because main appended a prop to lists this branch had reordered.
    sizes is required on ContentCard now, so every card needs it. Each card's prop set matches
    main's exactly.

Lean gate green on the merge: 0 lint errors, tsc --noEmit clean, 1,118 tests in 116 files.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 18, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 18, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Nov 18, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Pending in SYDevelopers Technical Roadmap Nov 18, 2026
Merged via the queue into main with commit 4154a4d Nov 18, 2026
24 checks passed
@sydevs-bot
sydevs-bot deleted the claude/fix-179-a11y-contrast branch November 18, 2026 20:00
@sydevs-bot sydevs-bot moved this from Pending to Done in SYDevelopers Technical Roadmap Nov 18, 2026
sydevs-bot pushed a commit that referenced this pull request Nov 18, 2026
Two files conflicted, both against #199's contrast pass and main's
reformat.

Playlist.tsx keeps this branch's behaviour and main's colours: the
duration still renders only when the track states one, now in
text-teal-50 / text-gray-700; the row keeps aria-current and
key={track.url}.

AudioPlayer.stories.tsx takes main's structure with PlaylistPlayer in
every slot, since AudioPlayer is presentational on this branch and
needs the hook wiring.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXN8zWk1jS1XF5NBW3
sydevs-bot pushed a commit that referenced this pull request Nov 18, 2026
main reformatted the three files this branch rewrites (#199, #260): prettier
collapsed each `stateStyles` map onto one line, added trailing commas, and
perfectionist sorted the JSX props. This branch had replaced `forwardRef` with
React 19's `ref` prop over the same lines, and added scoped eslint disables in
`ColumnCarousel`.

Every hunk keeps this branch's shape and main's formatting. No side was taken
wholesale: `Input` and `Textarea` are plain functions taking `ref` as a prop,
with main's one-line `stateStyles` and sorted props; `ColumnCarousel` keeps
main's `scrollTo` wrapping and one-line signature, and the disable comments keep
the two `key={index}` elements multi-line.

Lean gate green on the merge: eslint 0 errors, tsc clean, 1124 tests passed.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZ3NhbnJ5kzajYDrq5
sydevs-bot pushed a commit that referenced this pull request Nov 19, 2026
…chosen place

SahajCloud's Splash block has a `map-search` layout, and it hides title,
subtitle and action URL for it, but the converter never read `layout`, so such
a splash rendered an empty full-screen image. It now holds `MapSearch`: the
Mapbox place search (`LocationSearch`, still ClientOnly and lazy) whose pick
does a full load of the class map, searching around that place. The old
/classes page opened with the same search.

The URL is spelled once, in `lib/urls.ts` (`classMapSearchHref`), as the
widget's query routing: `/map?atlas=` + the encoded
`/search?center=<lng>,<lat>&q=<name>`, locale-prefixed through `localeHref`,
gated by `isSafeNavigationUrl` before `window.location.assign`. The name is
encoded once more inside the route, so a place carrying `&` or `#` stays one
value; on the deployed preview "Paris & Île-de-France" pre-fills intact, and
the Nearby option's "Current Location" label lists Paris classes by distance.
`/map` asks the widget for path routing, which ignores a `?atlas=` starting
with `/` once the client record names a canonical embed, so where it does the
visitor lands on the map without the place. That limit is a `shortcut:` on the
helper.

The block's action text, the only text SahajCloud leaves visible for the
layout, is the search's visible label (`LocationSearch` gains `label`, a real
`<label for>`), not its placeholder: the placeholder's grey is held under 4.5:1
on the strength of a visible label beside every field (#199). A visitor
without JavaScript gets a link to the class map in the same words, the
no-JavaScript path components/AGENTS.md says an adopting page owes;
`LocationSearch`'s barrel takes that `fallback` and keeps it up while the lazy
chunk loads. With no action text there is no link, because no translation
names one.

The title, subtitle and action URL a block keeps from before a switch to
map-search are not drawn. `splashTitle` says which title a splash draws, so
`getLeadSplash` agrees and `PageTemplate` still supplies the page's `<h1>`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

fix(components): text and button colour pairings fail the 4.5:1 AA bar

3 participants