Skip to content

The agent that grows with you

fix(website): readable filter pill labels in light mode

zohuyhieuzo03ee18a0b06054
diff --git a/website/src/components/UserStoriesCollage/styles.module.css b/website/src/components/UserStoriesCollage/styles.module.css
index 42b9e6c7f93..a183e5c1e9b 100644
--- a/website/src/components/UserStoriesCollage/styles.module.css
+++ b/website/src/components/UserStoriesCollage/styles.module.css
@@ -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 {
diff --git a/website/src/pages/skills/styles.module.css b/website/src/pages/skills/styles.module.css
index 5f519208516..f9a23dc4bb4 100644
--- a/website/src/pages/skills/styles.module.css
+++ b/website/src/pages/skills/styles.module.css
@@ -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);
}