Skip to content

Glitches on navbar when clicking on links and non default theme mode is used (dark / light) #11399

@jhereck

Description

@jhereck

Have you read the Contributing Guidelines on issues?

Prerequisites

Description

Hi,

Just notice a problem in my local / staging env, and tried on the official Docusaurus page (url : https://docusaurus.io/) to be sure that it was not a pb on my end.

As you can see on the video below, pb is there's glitches when navigating in navbar when using non default theme (dark or light) : when letting default theme to light mode, when you select dark mode you can see glitches in navbar when clicking on links. If you set default to dark mode, you will experience the same when using light mode.

The video was taken from the official page so you can do the test very easily : i assume default theme mode was not set or set to light cause you've got glitch in dark mode (or system mode when system is dark too) !

Thanks for your help !

chrome_AfY1FOTLSA.mp4

Reproducible demo

No response

Steps to reproduce

  1. Go to Docusaurus official page : https://docusaurus.io/
  2. Set dark mode if it's not your system default
  3. Click on links in navbar -> see glitches
  4. Set light mode
  5. Click on links in navbar -> no glitches

Expected behavior

No glitches at all, default theme mode selected or not.

Actual behavior

chrome_AfY1FOTLSA.mp4

Your environment

  • Public source code:
  • Public site URL:
  • Docusaurus version used:
  • Environment name and version (e.g. Chrome 89, Node.js 16.4):
  • Operating system and version (e.g. Ubuntu 20.04.2 LTS):

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its executiondomain: themeRelated to the default theme components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions