fix(website): readable filter pill labels in light mode
Active filter pills on /docs/user-stories used color: var(--ifm-background-color) on a near-black background, but Infima's light theme resolves that variable to transparent because custom.css only overrides it under [data-theme='dark']. Default-active "All" pills therefore rendered as empty black blobs (#91491). Switch to --ifm-color-emphasis-0 for theme-aware contrast. Apply the same fix to skills page pick-button hover labels. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -68,7 +68,10 @@
|
||||
}
|
||||
.filterActive {
|
||||
background: var(--ifm-color-emphasis-900);
|
||||
color: var(--ifm-background-color);
|
||||
/* emphasis-0 keeps labels readable on the near-black pill; --ifm-background-color
|
||||
is only set under [data-theme='dark'] in custom.css, so Infima's light theme
|
||||
resolves it to transparent and the default-active pills look like empty blobs (#91491). */
|
||||
color: var(--ifm-color-emphasis-0);
|
||||
border-color: var(--ifm-color-emphasis-900);
|
||||
}
|
||||
[data-theme='dark'] .filterActive {
|
||||
|
||||
@@ -1036,5 +1036,6 @@
|
||||
|
||||
.pickBtn:hover {
|
||||
background: var(--ifm-color-primary);
|
||||
color: var(--ifm-background-color, #0b0b0e);
|
||||
/* Same transparent --ifm-background-color failure mode as #91491. */
|
||||
color: var(--ifm-color-emphasis-0, #f7f8fa);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user