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 dark mode setting does not persist after a page refresh. #120

Open
ParvathySree opened this issue Jul 31, 2024 · 6 comments
Open

The dark mode setting does not persist after a page refresh. #120

ParvathySree opened this issue Jul 31, 2024 · 6 comments

Comments

@ParvathySree
Copy link

The dark mode setting does not persist after a page refresh. When the page is refreshed, the dark mode reverts to the default (light mode) instead of retaining the user's preference.

Steps to reproduce the behavior :
1.Enable dark mode in the application using the moon icon button at top right
2.Refresh the page.
3.Observe that the dark mode setting is lost and the application returns to light mode.

Expected Behaviour :
The dark mode setting should persist even after a page refresh, so that the user’s preference is maintained.

Screenshots:
Before refresh :
Screenshot from 2024-07-31 16-50-28

After refresh:
Screenshot from 2024-07-31 16-52-22

@DolcePelo
Copy link

may i fix this issue?

@DolcePelo
Copy link

i've already sent a PR for this issue

@Suswetha6
Copy link

Suswetha6 commented Aug 5, 2024

Hi @version0chiro ,can you assign me the issue.I fixed it using the useEffect hook and storing the current theme in the local storage

@Saurabh-Rana17
Copy link
Contributor

Saurabh-Rana17 commented Aug 19, 2024

Hi @version0chiro , if this issue is still open can you please assign it to me
edit - I have added the PR #134

@Nkovaturient
Copy link

Hello @version0chiro , the PR raised by @Suswetha6 has already fixed the dark-mode issue, yet the issue is still open & unassigned.
Can you assign me this issue as a contributor in GSOC-Extd 2024 to contribute while dedicatedly adhering to your code of conduct and making changes w.r.t your web app requirements and integrity.

@Sathyan-B
Copy link

Sathyan-B commented Oct 7, 2024

#132
Please check this PR

version0chiro added a commit that referenced this issue Oct 15, 2024
Fixed issue no #120 : added persistent theme on refresh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants