fix(ui): darken light-theme danger to meet AA contrast
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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user