Repository navigation
Darken status words on light themes so they clear 4.5:1. - #1275
calledtoconstruct merged 1 commit into
Conversation
Running, warning, and error text on Daylight, Linen, and Sky is darker, and Ember's red errors are a step lighter, so those words clear 4.5:1. Dots, icons, charts, and buttons keep the bright colours. Fixes MyOwnDataCenter#498 Co-Authored-By: Grok 4.7
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 61e1446. Configure here.
| export function StatusPill({kind, label}: {kind: StatusKind; label: string}) { | ||
| return ( | ||
| <span className={`pill${kind === 'busy' ? ' busy' : ''}`} style={{'--c': STATUS_COLOR[kind]} as CSSProperties}> | ||
| <span className={`pill${kind === 'busy' ? ' busy' : ''}`} style={{'--c': STATUS_COLOR[kind], color: STATUS_INK[kind]} as CSSProperties}> |
There was a problem hiding this comment.
Status ink fails on tinted fills
Medium Severity
Status ink is darkened only until it clears 4.5:1 on the page. StatusPill, failed transfer counts, and the What's New fix tag then draw that ink on a translucent mix of the brighter fill, so the rendered contrast falls back under 4.5:1 on Daylight, Linen, and Sky.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 61e1446. Configure here.
|
Thank you @nixfred. Status words on Daylight, Linen, and Sky are darker, and Ember's red errors are a step lighter, so they clear 4.5:1. Charts, dots, icons, and buttons keep their colour. Merged. |


What this changes
Status words (running, warnings, and errors) on Daylight, Linen, and Sky are darker, and Ember's red errors are a step lighter, so they clear 4.5:1 on the page. Charts, dots, icons, and buttons keep the bright colours.
Fixes #498.
How you tested it
npm run typecheck,npm run buildandnpm testpassRan
node --experimental-strip-types --import ./test/retry-rm.mjs --test --test-concurrency=1 test/muted-text-contrast.test.mjs(13 passed) andnpx tsc --noEmit -p web.Anything to know
Leaves the version number and What's New to the maintainer. The bright fills (
--green,--yellow,--peach,--red) are unchanged. Ember's red text is lighter, not darker: that page is darker than the red, so darkening it would fail contrast.Gauge alerts, the Reviewed badge, the provider check line, and swarm alerts share a colour with an icon. The words use the text token; the icons stay on the fill. Menu and delete buttons that paint an icon and a label with the same red were left alone.
Note
Low Risk
Theming and CSS only—no auth, data, or API changes—though many UI surfaces switch text color tokens.
Overview
Introduces
-textCSS variables (--green-text,--yellow-text,--peach-text,--red-text) so status and error copy can meet WCAG 4.5:1 on each theme’s page background while--green/--yellow/--red/--peachstay unchanged for dots, icons, charts, and button fills.On Daylight (latte), Linen, and Sky, those tokens are darkened relative to the fills; on Ember (gruvbox)
--red-textis slightly lighter than--redbecause the page is darker than the red. Default/dark themes mostly alias-textto the fill.styles.cssand several screens (ui.tsxStatusPill, gauges, errors, swarm alerts, etc.) now color words with-textand, where icon + label share a row, often keep icons on the fill via separate rules.Adds a
muted-text-contrasttest that every theme’s status text tokens hit ≥4.5:1 on--bgand matchdarkenForTextOn/ lighten when the fill alone fails contrast.Reviewed by Cursor Bugbot for commit 61e1446. Bugbot is set up for automated code reviews on this repo. Configure here.