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 refreshing a page #503

Open
Tejashri-Taral opened this issue Jun 10, 2024 · 5 comments · May be fixed by #545
Open

BUG 🐞: Dark mode gets turned off on refreshing a page #503

Tejashri-Taral opened this issue Jun 10, 2024 · 5 comments · May be fixed by #545
Assignees
Labels

Comments

@Tejashri-Taral
Copy link

Tejashri-Taral commented Jun 10, 2024

Hey @JiyaGupta-cs,
Here is the issue I encountered -
The dark mode preference does not persist across page refreshes. Each time the page is refreshed, the mode resets to the default instead of maintaining the user-selected mode (dark or light).
I think it is due to the theme state is not being persisted when the page is refreshed.

To Reproduce*
Steps to reproduce the behavior:

Go to the website.
Toggle the light mode switch to change the theme.
Refresh the page.
Observe that the theme reverts to the default mode instead of retaining the selected mode.

Expected behavior
The selected dark or light mode should persist across page refreshes.
If a user selects dark mode, the page should remain in light mode even after refreshing.

Screenshots (Mandatory)

Before refreshing the page looks like (currently in dark mode):

image

After refreshing the page:

image

Are you contributing under any open-source program?
GSSOC'24

I hope I was able to explain the issue and the expected solution.
If so, Could you please assign this issue to me under GSSoC 24?

@Tejashri-Taral Tejashri-Taral changed the title BUG 🐞: Light mode gets turned off on refreshing a page BUG 🐞: Dark mode gets turned off on refreshing a page Jun 10, 2024
@sh4f3e
Copy link

sh4f3e commented Jun 14, 2024

@JiyaGupta-cs Kindly Assign this bug to me I'm working under GSSOC'24 Contributor

@Tejashri-Taral
Copy link
Author

@Sushilverma002 ,please take a look and review it.

@Tejashri-Taral
Copy link
Author

@JiyaGupta-cs and @Sushilverma002 ,please take a look and review it.

@Tejashri-Taral
Copy link
Author

@Sushilverma002 and @JiyaGupta-cs

@Tejashri-Taral
Copy link
Author

@JiyaGupta-cs , @Sushilverma002

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

Successfully merging a pull request may close this issue.

3 participants