fix(ui): make hover:text-white theme-aware so light-theme labels survive hover (issue #1909)

This commit is contained in:
maziggy
2026-09-07 09:21:01 +02:00
parent f879dd552a
commit 5ab0a4cb11
5 changed files with 14 additions and 3 deletions
+10
View File
@@ -348,6 +348,16 @@ body {
color: var(--text-primary);
}
/* Same, for the hover variant (#1909). Tailwind compiles `hover:text-white`
to `.hover\:text-white:hover`, a different selector the rule above never
matches -- so every one of the ~400 `text-bambu-gray hover:text-white`
controls turned literally white on hover and vanished against the light
theme's background. Unlayered, like the rule above, so it outranks
Tailwind's `@layer utilities` output. */
.hover\:text-white:hover {
color: var(--text-primary);
}
/* Smooth transitions for theme changes */
.bg-bambu-dark,
.bg-bambu-dark-secondary,