-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
[bug] isDarkTheme from useThemeContext always returns false #2912
Comments
apsdehal
added
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
labels
Jun 9, 2020
yangshun
added
mlh
Major League Hacking Fellowship
and removed
status: needs triage
This issue has not been triaged by maintainers
labels
Jun 10, 2020
See #2646. It might be caused by the same issue. |
@SamChou19815 Thanks a lot. This does fix the issue. Maybe it needs to be documented better. |
@apsdehal Willing to submit a PR with better docs? 😊 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug Report
In the default template for docusaurus, I am trying to use theme context to get
isDarkTheme
's value. It is always set to false, even when I change to dark theme and then reload.Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
(Write your steps here:)
Expected behavior
Should provide true when dark theme is set
Actual Behavior
isDarkTheme is false even when dark them is on
Your Environment
The text was updated successfully, but these errors were encountered: