ClassicTheme ColorModeToggle shows both icons in Firefox #9582
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
closed: duplicate
This issue or pull request already exists in another issue or pull request
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
When a Docusaurus 3 site using the classic theme is built, in Firefox, the toggle colour mode button shows both icons rather than the single icon for the current mode.
This works fine in other browsers, and works fine in Firefox when using
npm run start
.The issue on occurs when running
npm run build && npm run serve
Reproducible demo
https://codesandbox.io/p/sandbox/divine-sky-wcnrpr
Steps to reproduce
npx create-docusaurus@latest doc classic --typescript
npm run build && npm run serve
Expected behavior
Expect the button to be either:
Actual behavior
Actually seeing this:
Your environment
Self-service
The text was updated successfully, but these errors were encountered: