-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
docs: fix dark mode flashing bug #1032
Conversation
✔️ Deploy Preview for pinia-official ready! 🔨 Explore the source changes: 7ced7c4 🔍 Inspect the deploy log: https://app.netlify.com/sites/pinia-official/deploys/6201927ffeef9e00087a56f3 😎 Browse the preview: https://deploy-preview-1032--pinia-official.netlify.app |
@plitter - fixed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! I added a few final touches to fix the initial theme
I still see it chrome_JXOy2ie1AG.mp4 |
@web2033 - have you confirmed its not a cached version of the page? |
Yes. |
Addresses #686
Currently multiple having multiple browser tabs open to the docs site creates some crazy flickering.
Also reloading the page creates inconsistent behaviour switching between dark/light mode.
This removes a bunch of extra code that was trying to mess with dark mode on page load that from what I can tell, seems unnecessary.
I believe the goal was to get the SSG of the site to include a "light" class on the body tag, but it appears from the current docs site page source that it wasn't actually working anyway...
Also