Dark or Light Button Only Work for One Page #219
Labels
Hacktoberfest_accepted
Hacktoberfest-accepted
Hacktoberfest2024
Hacktoberfest
Hacktoberfest-2024
Hacktoberfest_2024
📝 Description
Dark Mode Button Only Affects Profile Page Instead of All Pages
📷 Screenshot or Visual Reference (optional)
🐛 Bug Report
Steps to Reproduce:
1.Navigate to the Profile page.
2.Click on the Dark Mode button.
3.Observe that only the Profile page switches to dark mode while the other pages (Projects, Contact) remain in light mode.
Expected Behavior:
4.When the Dark Mode button is clicked, all pages (Profile, Projects, Contact) should switch to dark mode. Similarly, when Light
Mode is selected, all pages should revert to light mode with a single click.
Actual Behavior:
Only the Profile page switches to dark mode, while other pages remain in light mode.
💡 Enhancement / Feature Request
This feature would allow for a consistent theme across all pages, enhancing user experience by ensuring that a dark mode or light mode selection applies globally across the entire website rather than just a single page.
🌐 Additional Context
This issue occurs on a website with three main sections: Profile, Projects, and Contact. The current behavior only applies the dark theme to the Profile section. Implementing a global theme toggle would improve usability and consistency.
The text was updated successfully, but these errors were encountered: