-
Notifications
You must be signed in to change notification settings - Fork 90
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
fix flickering white on page load / reload #6431
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
It feels a bit too complx
@@ -7,6 +7,7 @@ | |||
width: 100%; | |||
min-height: 60px; | |||
align-items: center; | |||
transition: background 0.3s ease, box-shadow 0.3s ease; |
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.
My .css foo is pretty stale, what browser will support those?
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.
https://caniuse.com/css-transitions -> all of them except for ie9 and opera mini
This is fixed by adding a _document file, that renders server side and prerenders based on dark / light mode to avoid setting colors after initial render.
https://nextjs.org/docs/pages/building-your-application/routing/custom-document