Repository navigation
Commit c0070d7
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 <[email protected]>1 parent dcd3c5b commit c0070d7
4 files changed
Lines changed: 528 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | | - | |
505 | 504 | | |
506 | 505 | | |
507 | 506 | | |
508 | 507 | | |
509 | 508 | | |
| 509 | + | |
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
637 | | - | |
638 | 637 | | |
639 | 638 | | |
| 639 | + | |
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
| |||
0 commit comments