Skip to content

[Bug]: Dark Mode Toggle Button Not Switching to Light ModeΒ #735

@SRSoham

Description

@SRSoham

πŸ› Description

The dark/light mode toggle button in the navbar is currently not functioning properly. The website remains stuck in dark mode even after clicking the toggle button.


❌ Current Behavior

  • Clicking the theme toggle button does not switch the website to light mode.
  • The UI stays permanently in dark mode.

βœ… Expected Behavior

  • Clicking the toggle button should switch between:
    • πŸŒ™ Dark Mode
    • β˜€οΈ Light Mode
  • Theme changes should reflect across the entire website.

πŸ’‘ Possible Cause

The theme state may not be updating correctly, or the light theme classes/styles are not being applied properly.


πŸ›  Suggested Fix

  • Verify theme state management logic
  • Ensure light mode CSS variables/classes are implemented
  • Check if localStorage/theme persistence is updating correctly
  • Confirm the toggle button updates the DOM/theme provider properly

🎯 Acceptance Criteria

βœ”οΈ Theme toggle switches between dark and light mode
βœ”οΈ UI updates instantly after clicking
βœ”οΈ Theme persists after page refresh
βœ”οΈ No layout/UI breaking issues in either mode


πŸ“Œ Additional Notes

This is an important usability issue since users currently cannot access light mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions