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

The user's light/dark mode preference is not persisted #616

Open
yamanidev opened this issue Dec 18, 2024 · 1 comment
Open

The user's light/dark mode preference is not persisted #616

yamanidev opened this issue Dec 18, 2024 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@yamanidev
Copy link

Describe the bug
When the user toggles the theme and refreshes the page, or visits another one, the toggle is discarded.

To Reproduce
Steps to reproduce the behavior:

  1. Toggle the light/dark theme
  2. Refresh the page

Expected behavior
Theme preference is persisted.

@yamanidev yamanidev added the bug Something isn't working label Dec 18, 2024
@github-project-automation github-project-automation bot moved this to Backlog in DzCode i/o Dec 18, 2024
@ZibanPirate
Copy link
Member

nice catch, here's some helpful context for debugging:

we're using daisyui, and use theme-toggle component.
daiyui recommends using theme-change.

a potential easy fix here is to use that package.

@ZibanPirate ZibanPirate added the good first issue Good for newcomers label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Status: Backlog
Development

No branches or pull requests

2 participants