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

Fixed 🐞: Persist Dark Mode/Light Mode Preference Across Page Refreshes #422

Merged
merged 1 commit into from
Jun 8, 2024

Conversation

MastanSayyad
Copy link
Contributor

Hey @piug-07

This PR adds functionality to persist the user's dark mode or light mode preference across page refreshes using localStorage.

The changes ensure that the chosen theme state (either dark or light) remains consistent even after:

  • The user reloads the page.
  • Leaves and revisits the page.
  • Navigate to other pages.

closes #410

solve.mp4

please take a look and review it, Thanks!

Copy link

netlify bot commented Jun 6, 2024

Deploy Preview for blogzen-opensource ready!

Name Link
🔨 Latest commit 5a18160
🔍 Latest deploy log https://app.netlify.com/sites/blogzen-opensource/deploys/66621a35627bc90008491843
😎 Deploy Preview https://deploy-preview-422--blogzen-opensource.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@MastanSayyad
Copy link
Contributor Author

@piug-07 please merge this PR, Thank You!

@piyushg-07 piyushg-07 merged commit ba3334f into piyushg-07:main Jun 8, 2024
5 checks passed
@piyushg-07 piyushg-07 added bug Something isn't working good first issue Good for newcomers gssoc level2 GSSoc'24 labels Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers gssoc GSSoc'24 level2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐞 BUG: Dark mode gets turned off on refeshing a page
2 participants