compose icon indicating copy to clipboard operation
compose copied to clipboard

[BUG] Dark-mode screen flicker when opening a new document

Open poVoq opened this issue 1 year ago • 2 comments

I have checked all the prerequisites below and I'm yet experiencing a problem

  • [X] Read the README.md
  • [X] Have the extended version of Hugo installed
  • [X] Used the exampleSite's config.toml as a reference

Describe the bug

When switching between documents in light mode there is a slight screen flicker as if the dark-mode still gets shown for a split second.

When disabling default dark-mode via enableDarkMode = false this switches around to a flicker in dark-mode as if the light-mode was shown for a split second. This is obviously much more jarring on dark-mode and thus more noticeable.

This is easy to reproduce with Firefox even on your hosted documentation version. With Chromium it is less consistent as it seems like even when enableDarkMode = true it flickers sometimes in dark-mode.

Desktop (please complete the following information):

  • Browser: latest Chromium and Firefox

poVoq avatar Feb 03 '23 21:02 poVoq