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

fix-#159 : Configured Theme changes to light mode on page refresh in add blogs page #285

Conversation

Ritik-The-Dev
Copy link
Contributor

Summary

Fixed the issue of the theme changing to light mode on page refresh in the add blogs page by adding the class "dark" to the document if the theme is set to "dark" in local storage.

Description

The issue occurred because the class list did not include "dark" while in dark mode, so I added it when the theme is set to "dark" in local storage.

Issue(s) Addressed

Closes #159

Prerequisites

…dark and light Mode based on preferences and local stored theme
Copy link

vercel bot commented May 19, 2024

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

Name Status Preview Comments Updated (UTC)
wanderlust ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 19, 2024 3:12am
wanderlust-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 19, 2024 3:12am

@krishnaacharyaa
Copy link
Owner

LGTM @Ritik-The-Dev I'll get this in, Thank you

@krishnaacharyaa krishnaacharyaa merged commit fbd8f5f into krishnaacharyaa:main May 19, 2024
3 of 4 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.

[BUG] Theme changes to light mode on page refresh in add blogs page
2 participants