Skip to content

fix(weather): Fix dark mode CSS inheritance in weather components#132

Merged
burinc merged 1 commit intoClojureCivitas:mainfrom
burinc:main
Nov 8, 2025
Merged

fix(weather): Fix dark mode CSS inheritance in weather components#132
burinc merged 1 commit intoClojureCivitas:mainfrom
burinc:main

Conversation

@burinc
Copy link
Copy Markdown
Collaborator

@burinc burinc commented Nov 8, 2025

Update CSS selectors to include descendant selector (*) so child elements properly inherit dark mode CSS variables. Add .quarto-dark fallback for Quarto compatibility.

Previously, cards retained white backgrounds in dark mode because CSS variables only applied to elements with data-bs-theme attribute directly, not their children.

Affects: All 6 weather component files

Update CSS selectors to include descendant selector (*) so child elements
properly inherit dark mode CSS variables. Add .quarto-dark fallback for
Quarto compatibility.

Previously, cards retained white backgrounds in dark mode because CSS
variables only applied to elements with data-bs-theme attribute directly,
not their children.

Affects: All 6 weather component files
@burinc burinc merged commit 76ec4af into ClojureCivitas:main Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant