Skip to content

Commit c0070d7

Browse files
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

File tree

‎ui/src/e2e/claude-sessions.e2e.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,12 +501,12 @@ suite("Claude native session catalog", () => {
501501
});
502502
await page.clock.runFor(100);
503503
await page.locator('.chat-virtual-row:not([data-virtual-row-key="history"])').first().waitFor();
504-
const anchor = await firstVisibleVirtualRow(thread);
505504
await expect
506505
.poll(() => gateway.getRequests("sessions.catalog.read").then((requests) => requests.length))
507506
.toBe(initialReadCount + 1);
508507
await page.locator(".chat-history-loading").waitFor();
509508
expect(await page.getByRole("button", { name: "Load older" }).count()).toBe(0);
509+
const anchor = await firstVisibleVirtualRow(thread);
510510
await startVirtualRowPrependProbe(thread, anchor);
511511
await gateway.resolveDeferred("sessions.catalog.read");
512512
await expect
@@ -634,9 +634,9 @@ suite("Claude native session catalog", () => {
634634
element.dispatchEvent(new Event("scroll"));
635635
});
636636
await page.locator('.chat-virtual-row:not([data-virtual-row-key="history"])').first().waitFor();
637-
const anchor = await firstVisibleVirtualRow(thread);
638637
await gateway.waitForRequest("chat.history");
639638
await page.locator(".chat-history-loading").waitFor();
639+
const anchor = await firstVisibleVirtualRow(thread);
640640
await startVirtualRowPrependProbe(thread, anchor);
641641
await gateway.resolveDeferred("chat.history");
642642
await expect

0 commit comments

Comments
 (0)