๐ 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.
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):
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):
After refreshing the page:
On which device are you experiencing this bug?
Chrome, Windows
Record