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: Dark mode gets turned off on refeshing a page #1310

Closed
MastanSayyad opened this issue Jun 6, 2024 · 3 comments
Closed

🐞 BUG: Dark mode gets turned off on refeshing a page #1310

MastanSayyad opened this issue Jun 6, 2024 · 3 comments

Comments

@MastanSayyad
Copy link
Contributor

Hey @codervivek5 ,
The Dark mode function gets turned off on refreshing a page or if we try to navigate to other pages . (You may check that)
To fix this, we can store the theme state in the browser's local storage so that it persists across page reloads.

07.06.2024_01.20.27_REC.mp4

I believe by storing the theme state in the browser's local storage, we ensure that:

  • The theme persists across page reloads and navigations
  • Even when the user navigates away from the page, the theme persist
  • This provides a seamless experience for users who prefer a specific theme setting. (for example, social media and our IDEs stay on the theme mode that we have selected)

Could you please assign this issue to me under GSSoC 24?

Copy link

github-actions bot commented Jun 6, 2024

Thank you for creating this issue! We'll look into it as soon as possible. Your contributions are highly appreciated! 😊

@MastanSayyad
Copy link
Contributor Author

@codervivek5 please take a look at this issue

@MastanSayyad
Copy link
Contributor Author

@codervivek5

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