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 #410

Closed
4 tasks done
MastanSayyad opened this issue Jun 6, 2024 · 1 comment · Fixed by #422
Closed
4 tasks done

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

MastanSayyad opened this issue Jun 6, 2024 · 1 comment · Fixed by #422
Assignees

Comments

@MastanSayyad
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

Hey @piug-07 ,
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.

themeee.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?

Record

  • I agree to follow this project's Code of Conduct
  • I'm a GSSoC'24 contributor
  • I want to work on this issue
Copy link

github-actions bot commented Jun 8, 2024

Hello @MastanSayyad! Your issue #410 has been closed. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants