Repository navigation
chore(ui): bump the submodule for the dark status token fix (#951) - #955
Merged
Merged
Conversation
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]>
Closed
5 of 7 tasks
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.
Closes #951. Closes #952.
Bumps
packages/uifor 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/.selectedandborder.dark.active/.selected/.focuswere all still#1d7282(primary[500]);info/success/errorwere the light values acrossfg,iconandborder.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.focusat 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 thefggroup'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.mutedis too light — one ground token clears 15 failures". The arithmetic rules that out: the tightest foreground needs a ground luminance of ≤ 0.01303 andbg.dark.subtleis 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
pnpm prepushgreen.fg[theme].success/.erroras a background — a progress fill, an 8×8 status dot, and one icon already oncolors.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