color mode is not working on nav bar custom component during first load #10619
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
closed: invalid
This issue / PR is low quality, unwanted or spam and doesn't qualify as a contribution in any way.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Custom button on nav bar doesn't use the right color mode on first loading. After clicking on light/dark mode button on nav bar, it shows the dark mode button.
Reproducible demo
No response
Steps to reproduce
Expected behavior
Show dark mode on custom image button when first loading the page.
Actual behavior
Custom button on nav bar doesn't use the right color mode when first loading the pages. I confirm that color mode is under "dark".
It shows light mode like this:
Your environment
Self-service
The text was updated successfully, but these errors were encountered: