Skip to content

fix: hover not showing the right theme when on light mode #359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 27, 2024

Conversation

cctdaniel
Copy link
Contributor

@cctdaniel cctdaniel commented Jun 27, 2024

previously:
image

now:
image
image

Copy link

vercel bot commented Jun 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2024 4:53am

Copy link
Contributor

@cprussin cprussin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can make this much simpler by using the dark: selector from tailwind.

If for whatever reason that doesn't work (and we can't fix it....) then we should be able to use useTheme from next-themes which is what nextra uses under the hood.

@cctdaniel cctdaniel requested a review from cprussin June 27, 2024 04:50
@cctdaniel cctdaniel merged commit da84b9f into main Jun 27, 2024
4 checks passed
@cctdaniel cctdaniel deleted the fix-theme-hover branch June 27, 2024 05:09
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.

2 participants