Skip to content

fix: Header bg-color remains white in dark theme#1

Open
thewizof6 wants to merge 1 commit into
Agentic-JJ-Web3:mainfrom
thewizof6:landingPageHeaderBG
Open

fix: Header bg-color remains white in dark theme#1
thewizof6 wants to merge 1 commit into
Agentic-JJ-Web3:mainfrom
thewizof6:landingPageHeaderBG

Conversation

@thewizof6
Copy link
Copy Markdown

Header bg-color calls "var(--bg-primary").
When in the light theme from :root and the dark from [data-theme='dark']. Found that :root --bg-primary was always being used regardless of the chosen theme.

Modified lines 68 and 70 in script.js

Verified the issue and fix in the following:
Chrome: 140.0.7339.208 (Official Build) (64-bit)
Firefox: 143.0.1 (64 bit)
Edge: 140.0.3485.81 (Official build) (64-bit)

Header bg-color calls "var(--bg-primary").
When in the light theme from :root and the dark from
[data-theme='dark'].  Found that :root --bg-primary was always being
used regardless of the chosen theme.

Modified lines 68 and 70 in script.js
@thewizof6
Copy link
Copy Markdown
Author

Hi,
I am working through your projects for beginners and noticed the header in the Landing Page project never changed background color when the dark theme was selected. I provided a solution in the 'landingPageHeaderBG' branch.

Thanks,
Darin

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