Skip to content

chore(ui): bump the submodule for the dark status token fix (#951) - #955

Merged
thinkclay merged 1 commit into
mainfrom
chore/951-ui-pointer
Oct 2, 2026
Merged

thinkclay merged 1 commit into
mainfrom
chore/951-ui-pointer

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Closes #951. Closes #952.

Bumps packages/ui for Scaffald/ui#43 — 2f094f7ac..b52c1205a. One line here; the substance is in that PR.

What it fixes

15 dark status tokens were byte-identical to their light counterparts — the dark palette was wearing light-mode status colours. icon.dark.active/.selected and border.dark.active/.selected/.focus were all still #1d7282 (primary[500]); info/success/error were the light values across fg, icon and border.

All 15 failed the 3:1 that WCAG 1.4.11 requires of UI components, at 2.62–2.96 against bg.dark.muted. border.dark.focus at 2.62 is the one that matters most — a focus indicator below 3:1 against its adjacent ground is a 2.4.11 failure, and it is the only way a keyboard user can tell where they are.

The fix was already documented in the file by whoever did half of it, above fg.dark.active: "The teal ramp has to invert for dark: light steps carry, dark steps disappear into the ground." That had been applied to the fg group's active/selected/warning and nowhere else.

Measured across all 320 foreground/background pairs, in both themes: 17 dark-only failures before, 0 after. #952's two are among them — lightening the success and error fills clears dark inverse text on those fills as a side effect, so it closes here too.

The correction on #951

My original diagnosis on that issue was wrong and the issue carries the correction. I filed it as "bg.dark.muted is too light — one ground token clears 15 failures". The arithmetic rules that out: the tightest foreground needs a ground luminance of ≤ 0.01303 and bg.dark.subtle is already 0.0102, so a "muted" that helped would have to be darker than subtle, inverting the ladder. Even a value visually indistinguishable from subtle only reaches 2.97.

No background token is changed. Worth knowing for #840, which will be reading these issues.

Verification on the bumped pointer

  • Contrast audit re-run against the submodule at its new commit: 0 dark-only failures.
  • 2147 tests, 0 failures — scf-core 1282, ui 714, app 98, schemas 53. Meaningful now that The vitest token mock has drifted from the real tokens in both directions #944 made the test tokens real rather than a stub; before that, a token change could not have been caught by these suites at all.
  • Both submodule builds clean, pnpm prepush green.
  • Regression checked rather than assumed: only three places use fg[theme].success/.error as a background — a progress fill, an 8×8 status dot, and one icon already on colors.text[theme].quaternary. Nothing puts white text on either.

Visibility

Dark mode is gated off until #840, so nothing changes for users today. This is what #840 needs in place before it can verify screens in dark — and it removes the entire token-level half of that work.

🤖 Generated with Claude Code

Closes #951. Closes #952.

Scaffald/ui#43 — 2f094f7ac..b52c1205a.

15 dark status tokens were byte-identical to their light counterparts, so the
dark palette was wearing light-mode status colours: icon.dark.active/.selected
and border.dark.active/.selected/.focus were all still primary[500] #1d7282,
and info/success/error were the light values across fg, icon and border. Every
one failed the 3:1 WCAG 1.4.11 requires of UI components, at 2.62-2.96 against
bg.dark.muted.

Scoring all 320 foreground/background pairs in both themes: 17 dark-only
failures before, 0 after. #952's two are among them — lightening the success
and error fills clears dark inverse text on those fills as a side effect.

Note for #840: the first theory, filed on #951, was that bg.dark.muted was too
light. That is wrong and the issue carries the correction. The tightest
foreground needs a ground luminance of 0.01303 and bg.dark.subtle is already
0.0102, so no "muted" value can fix it without being darker than subtle. No
background token changed.

Verified on the bumped pointer: 2147 tests, 0 failures (scf-core 1282, ui 714,
app 98, schemas 53), both submodule builds clean.

Co-Authored-By: Claude Opus 5 <[email protected]>
@thinkclay
thinkclay merged commit 21daa87 into main Oct 2, 2026
10 checks passed
@thinkclay
thinkclay deleted the chore/951-ui-pointer branch October 2, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant