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
New dark mode on docs flashes white background when switching pages #14492
Comments
I think I need to move the script tag to the head so it doesn't render the first frame pre-styling. Thanks for filing. |
We could also remove the theme switcher and make it CSS-only :) |
I like the switcher, personally. People get confused without it in my experience - thinking they are on a different site when they visit on another device, for example. I wish browsers had a native control for this. Re: screenshot, would that be for opengraph? |
Interesting, I've never felt this way myself or heard that from anyone. As a data point, Twitter adapts to the system light/dark theme, but the manual override toggle is burried deep in the account settings (i.e. not visible on the home page). Obviously Twitter is more recognizable but the general website behavior is present on popular sites too.
Same, I wish the browser would allow to "override" the system theme through it's UI and remember the choice per-site, the same way it remembers zoom levels per site. That way we wouldn't ever have to implement toggles and could use CSS directly for everything.
No, to have screenshots of the product that match the doc's theme. I was referring to this technique: Check it out on https://sourcegraph.com/extensions/sourcegraph/code-stats-insights when switching the OS theme. Would be possible with some CSS classes too of course. The <meta name="color-scheme" content="dark light"> which lets the browser select a dark default background color for |
fix #14492 - Load script in head - Pin pixel height of logo to reduce jitter
I didn't know about the color-scheme meta tag - neat. And yeah, it would be great if our screenshots adapted to the theme. I fixed the immediate issue in #14586, and we can do the other things later. |
fix #14492 - Load script in head - Pin pixel height of logo to reduce jitter
The text was updated successfully, but these errors were encountered: