apu52 / Travel_Website

๐Ÿš€ Welcome๐ŸŒˆ , This repo is officially accepted for GSSOC'2k24๐ŸŒŸ & VsOC'24๐ŸŒŸThis repo contains my project on Travel Website โœˆ๏ธ using HTML,CSS . It contains the landing page of a travel tour company website. If you have any front end project on this or you can add new features in the project or in this repos.
https://apu52.github.io/Travel_Website/
MIT License
191 stars 412 forks source link

BUG ๐Ÿž: Dark mode gets turned off on refreshing a page #894

Closed Tejashri-Taral closed 2 days ago

Tejashri-Taral commented 1 week ago

Is there an existing issue for this?

Describe the bug

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.

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.

Add ScreenShots

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

image

After refreshing the page:

image

On which device are you experiencing this bug?

Chrome, Windows

Record