fix(ui): darken light-theme danger to meet AA contrast
Tests · UI / test (push) Has been cancelled
Tests · UI / test (pull_request) Successful in 2m33s

With the default theme now following the OS, Playwright renders the light
theme, where the previous light `--color-danger` (#c84d4d, ~3.9:1 on a
near-white surface) failed WCAG 1.4.3 on error text — caught by the axe
scan of the science designer's empty-name error. Darken light
`--color-danger` to #c0392b (~5.5:1 on white; white-on-danger fills stay
≥5:1). Dark theme unchanged.
This commit is contained in:
Ilia Denisov
2026-05-22 08:40:38 +02:00
parent e193f3ca88
commit 70f2973396
+2 -2
View File
@@ -121,9 +121,9 @@
--color-accent-contrast: #ffffff; --color-accent-contrast: #ffffff;
--color-accent-subtle: rgba(74, 99, 216, 0.1); --color-accent-subtle: rgba(74, 99, 216, 0.1);
--color-danger: #c84d4d; --color-danger: #c0392b;
--color-danger-contrast: #ffffff; --color-danger-contrast: #ffffff;
--color-danger-subtle: rgba(200, 77, 77, 0.1); --color-danger-subtle: rgba(192, 57, 43, 0.1);
--color-success: #2f8f63; --color-success: #2f8f63;
--color-success-subtle: rgba(47, 143, 99, 0.12); --color-success-subtle: rgba(47, 143, 99, 0.12);