Skip to content

Commit

Permalink
Fix bad contrast in the platform pill in the docsite (#1251)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
esimkowitz authored Nov 8, 2024
1 parent bac9649 commit 9227140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/components/platformcontext.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9227140

Please sign in to comment.