Skip to content

Dark Mode Toggle Does Nothing #27

Description

@Vachhani-Tapan

Description

Description: The dark mode toggle button in the navbar adds/removes a dark-mode class on document.body, but no .dark-mode CSS rules exist anywhere in the project. Clicking the toggle has zero visual effect.

Steps to Reproduce

Steps to Reproduce:

  1. Log in to the application.
  2. Click the dark mode toggle button in the navbar.
  3. Observe that nothing changes on the page.

Expected vs Actual Behavior

Expected vs Actual Behavior:

  • Expected: Page switches to a dark color theme
  • Actual: No visual change occurs

Environment Details

Environment Details:

  • File: learnhub/frontend/src/components/common/NavBar.jsx, Lines 24-35
  • OS: Any
  • Browser: Any

Severity

Low (minor visual bug or typo)

Screenshots / Screen Recording

Image

Metadata

Metadata

Assignees

Labels

ECSoC26Required label for a PR to be eligible for Sentinel scoringenhancementNew feature or improvement request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions