Skip to content

Commit 67d42ba

Browse files
committed
A11y: Darken --color-accent-text to meet 4.5:1 contrast
The Linux E2E a11y test found the AI label in the search dialog failed WCAG AA contrast (2.17:1 vs required 4.5:1). The `color-mix()` with 55% black wasn't aggressive enough when the system accent color is light. Bumped to 65% black so the variable meets its documented ≥4.5:1 contract regardless of the system accent color.
1 parent ee90ba2 commit 67d42ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/desktop/src/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
--color-accent-text: color-mix(
4949
in srgb,
5050
var(--color-accent),
51-
black 55%
51+
black 65%
5252
); /* Darkened accent for a11y when used as foreground text (≥4.5:1 on --color-bg-secondary) */
5353
--color-accent-hover: color-mix(in oklch, var(--color-accent), white 15%);
5454
--color-accent-subtle: color-mix(in oklch, var(--color-accent), transparent 85%);

0 commit comments

Comments
 (0)