Repository navigation
Description
Summary
The relative time on each Home list row ("now", "5m", "2d") is 11 px text in text-muted-foreground/80. Its contrast is 3.29:1 on an idle row (#8b8b92 on #fcfcfc) and 3.16:1 on a row drawn on the panel's highlight background (#898990 on #f4f4f5). WCAG 2.1 SC 1.4.3 (AA) needs 4.5:1 for text this size. axe-core flags every row's time as color-contrast (serious).
The time is often the only cue to how recent a chat or task is, and Home is the first list a person sees.
Source and environment
- Source:
origin/mainatd6dd53ae0(2026-10-01), in a detached worktree with no local changes. The class dates from feat(platform): put chats, tasks and the inbox in one Home panel #3492 (2026-09-26). - Stack: an isolated local stack (
bun scripts/dev.ts). Vite runs onlocalhost:3601, the backend on127.0.0.1:3606, and the occurrence has its own PostgreSQL cluster on127.0.0.1:55360. - Browser: headless Chromium 1208 (
playwright-core1.58.2) at 1280×900, light theme,en-US, with axe-core 4.13.0 (the repository's copy), rulecolor-contrast. - Data: a synthetic owner with three chats ("Budget review", "Hiring plan", "Launch notes") on Home.
Reproduction
- Open Home (
/dashboard/‹org›/home) with a few chats or tasks listed. - Run axe with only the
color-contrastrule. Alternatively, measure any row's time with a contrast checker. - Open one row, and run it again with that row current.
Observed
- Every idle row's time reads 3.29:1 (
#8b8b92on#fcfcfc, 11 px, normal weight). - A row on the panel's highlight background reads 3.16:1 (
#898990on#f4f4f5). - axe lists each one as
color-contrast(serious): "Expected contrast ratio of 4.5:1".
The same probe passed the row titles, the context lines and the rest of the panel.
Expected
At least 4.5:1 on every surface the row sits on, including hover and highlight. Full-opacity --muted-foreground is the house remedy for exactly this case: packages/ui/src/globals.css:494–498 drops a half-opacity treatment because it read about 2:1 and "keep[s] --muted-foreground (4.6:1 there)".
Root cause
services/platform/app/features/home/components/home-rows.tsx:109: the age is text-muted-foreground/80 shrink-0 text-[11px]. The 80 % opacity blends --muted-foreground (240 3.8% 45%, packages/ui/src/globals.css:220) towards the row background, which takes it from about 4.6:1 to 3.2–3.3:1.
Acceptance checks
- The row age meets 4.5:1 on idle, hovered and highlighted rows in the light theme. Check the dark theme too (
--muted-foreground: 0 0% 65%,globals.css:304). - axe
color-contrastover Home with listed rows reports no violation. - Optional sweep: 16 other
text-muted-foreground/{50,60,70}uses underservices/platform/appandpackages/ui/srccarry the same risk. They were counted by reading, not measured.
Retained evidence
Evidence is retained locally under /agent/workspace/.tale358/r20261002T0015/, and attached as a tarball to Tale task TALE-358:
evidence/a2-confirm.log(B);evidence/a2/B-home-contrast-idle.jsonandB-home-contrast-current.json;- the screenshots
evidence/a2/B-home-idle.pngandB-home-current.png; - the first sighting,
evidence/a1/S1-chat.axe.json.
Limits
- Measured in the light theme at 1280 px only. The dark theme and the phone list share the class but weren't measured.
- This is not a visual-design ruling: the row may keep its quiet look with a colour that clears 4.5:1.
Activity
fix(platform): restore AA contrast for Home row times (#4171)