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

Persisting Theme Toggling #858

Closed
anuragbansall opened this issue Oct 9, 2024 · 2 comments
Closed

Persisting Theme Toggling #858

anuragbansall opened this issue Oct 9, 2024 · 2 comments
Assignees
Labels
gssoc-ext pr for GSSoC hacktoberfest pr for hacktoberfest hacktoberfest-accepted accept pr for hacktoberfest level1

Comments

@anuragbansall
Copy link
Contributor

Hi @iamrahulmahato  ,

I noticed that when users reload the site, their last dark mode preference isn't saved, and the site defaults back to light mode. I'd like to fix this so that when users revisit the site, their last selected theme is saved and applied automatically, preventing the need to change it every time.

I plan to implement this using either localStorage or cookies. Kindly assign this issue to me.

@anuragbansall
Copy link
Contributor Author

Hey @iamrahulmahato
I've created a PR #1359 that addresses this issue. Kindly review when you have the time. Thanks!

Copy link

Hello @anuragbansall! Your issue #858 has been successfully closed. ✅ Thank you for your contribution and helping us improve the project! If you have any more ideas or run into other issues, feel free to open a new one. Happy coding! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gssoc-ext pr for GSSoC hacktoberfest pr for hacktoberfest hacktoberfest-accepted accept pr for hacktoberfest level1
Projects
None yet
Development

No branches or pull requests

2 participants