Files
openclaw/ui
synth c0070d70ab fix(ui): muted theme text below WCAG AA contrast in webchat (#114586)
* fix(ui): raise muted theme text tokens to WCAG AA contrast

Secondary text using --muted/--muted-foreground measured 3.1-3.5:1 on
several bundled themes (issue #107299), below the 4.5:1 AA floor for
normal text. Nudges the offending hex tokens and adds a vitest guardrail
that parses base.css and asserts every text-on-surface token pairing in
every theme block stays >= 4.5:1 so future palette edits can't regress
this silently.

Closes #107299

* fix(ui): satisfy oxlint and noUncheckedIndexedAccess in contrast test

- Number.parseInt over global parseInt, ** over Math.pow, toSorted over sort
- Guard regex capture groups and indexed access under noUncheckedIndexedAccess

* test(ui): cover rendered theme contrast in Chromium

* test(ui): prove Skill Workshop mobile width in Chromium

* test(ui): stabilize deferred history prepend anchors

* test(ui): serialize rendered theme color diagnostics

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-29 08:26:10 -04:00
..