From 92271408dc0b8078849dcc24a59b2ff8493bb37e Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Fri, 8 Nov 2024 13:10:39 -0800 Subject: [PATCH] Fix bad contrast in the platform pill in the docsite (#1251) White text on green breaks site accessibility standards so I'm updating the active text color for the platform picker pill to be `--ifm-color-secondary-contrast-foreground`, which is white on light mode and light grey on dark mode. --- docs/src/components/platformcontext.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/components/platformcontext.css b/docs/src/components/platformcontext.css index 9104627c1..f60e2d3ee 100644 --- a/docs/src/components/platformcontext.css +++ b/docs/src/components/platformcontext.css @@ -22,7 +22,7 @@ .pill-option.active { background-color: var(--ifm-color-primary); - color: var(--ifm-color-secondary-lightest); + color: var(--ifm-color-secondary-contrast-background); font-weight: bold; }