Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark/light button buggy in default dark mode #4543

Closed
Bolthier opened this issue Sep 13, 2023 · 1 comment
Closed

Dark/light button buggy in default dark mode #4543

Bolthier opened this issue Sep 13, 2023 · 1 comment

Comments

@Bolthier
Copy link

Describe the Bug

When defaulting to dark mode through APP_DEFAULT_DARK_MODE=true in the .env the button for toggling between dark and light is not working for the first click. The second click on the button is switching the mode from dark to light.

This behaviour is probably caused by the default function of the button to switch from light to dark.

Steps to Reproduce

  1. Change in .env APP_DEFAULT_DARK_MODE=true
  2. Visit your bookstack instance in a private windows
  3. See dark mode as default
  4. Click on dark/light mode button
  5. Mode is not switching to light mode

Expected Behaviour

The site should change from dark to light on the first press of the button.

Screenshots or Additional Context

No response

Browser Details

Firefox 117 on Windows 10

Exact BookStack Version

BookStack v23.08.2

ssddanbrown added a commit that referenced this issue Sep 14, 2023
@ssddanbrown
Copy link
Member

Thanks for raising @Bolthier, could confirm this.
Have patched in 4177056, with a test added to cover, to be part of the next feature release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants