-
-
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] v2 doesn't honor defaultDarkMode options #2919
Comments
Hi, What do you mean "at night time", do you have a computer setting that actually change the prefered theme color according to time of the day? What's the result of Can you inspect your current session local storage? Do you have a repro site to test this? |
Never mind the night mode, I have updated the issue. It seems like v2 doesn't honor defaultDarkMode website. Here is the live website https://mmf.sh and the docusaurus config for it: https://github.com/facebookresearch/mmf/blob/master/website/docusaurus.config.js#L22. [Update] Since our website was going live, I have disabled the dark mode for now. Please clone and run to reproduce the issue. |
@apsdehal it's hard to help you if you don't give me the infos I asked :) Can you run this to your console and give me the output?
Have you tried in a new browser session? What's your setup, and what do you expect? Your site currently has Also, what's the expected behavior, and actual behavior? At this point, it's not even clear to me what you want as a final result. Force light mode? force dark mode? do you want a switch? do you want to set a default value? |
@slorber Apologies! Here is the information you asked for, tried in a new incognito window with
Here's what I want:
What I see:
What I tried:
|
So basically,,
And you want, no matter the user theme config, that he gets light theme by defaul, unless he uses the switch, right? Then we probably need another option, because current system takes user preference into account, and use the fallback if user has no preference. Also, I think Will think about it |
Yes, exactly. There should be an option to set a theme regardless of user settings. |
Hey all, this is feature is now released! |
🐛 Bug Report
If I set disableDarkMode to true or either set defaultDarkMode to false.
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
(Write your steps here:)
Expected behavior
Should respect these options
Actual Behavior
Options are not respected
Your Environment
The text was updated successfully, but these errors were encountered: