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

BUG: Page automatically switches to light mode even if it was previously set to dark mode #284

Closed
MrPC7 opened this issue May 16, 2024 · 2 comments

Comments

@MrPC7
Copy link

MrPC7 commented May 16, 2024

Issue Description
When the page is refreshed, it automatically switches to light mode even if it was previously set to dark mode.

Steps to Reproduce

  1. Open the web application.
  2. Toggle the theme to dark mode.
  3. Refresh the page.

Expected Behavior
The page should retain the dark mode setting after being refreshed.

Actual Behavior
The page reverts to light mode upon refresh, ignoring the previously set dark mode preference.

Solution Description

Stored the theme preference in localStorage and ensured it is retrieved and applied on page load to maintain the selected mode after refresh.

Assign me this issue under GSSOC24.

@Sooraj002
Copy link

I would like to resolve this issue.

@MrPC7
Copy link
Author

MrPC7 commented Jun 1, 2024

@JiyaGupta-cs

@MrPC7 MrPC7 closed this as completed Jul 2, 2024
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

2 participants