Skip to content

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

@poVoq

Description

@poVoq

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

  • Read the README.md
  • Have the extended version of Hugo installed
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions