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

Toggle Theme Fixed #299

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Conversation

anuragbansall
Copy link
Contributor

Description
This pull request addresses the issue #295 of the site defaulting to light mode when users reload the page, causing their last dark mode preference to be lost. The change ensures that a user's selected theme is saved and automatically applied when they revisit the site. This is achieved using localStorage to store the theme preference, preventing the need for users to manually switch themes each time they visit.

Motivation: Providing a better user experience by maintaining user preferences enhances usability and satisfaction.

Type of PR:
Bug fix
Feature enhancement

Checklist:
✅ I have made this change from my own.
✅ I have performed a self-review of my own code.
✅ My changes generate no new warnings.
✅ I have tested the changes thoroughly before submitting this pull request.
✅ I have provided relevant issue number after making the changes.

Copy link

vercel bot commented Oct 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
buddy-trail ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 1:51pm

Copy link
Contributor

github-actions bot commented Oct 8, 2024

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our contributing.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

Copy link

netlify bot commented Oct 8, 2024

Deploy Preview for buddytrail ready!

Name Link
🔨 Latest commit 00021c2
🔍 Latest deploy log https://app.netlify.com/sites/buddytrail/deploys/670538f2c3022900086975fa
😎 Deploy Preview https://deploy-preview-299--buddytrail.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.

@samarth-6 samarth-6 merged commit 0041c44 into PriyaGhosal:main Oct 8, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants