Skip to content

[ENHANCEMENT] Dark/Light Toggle Not Working on Shopkeeper Page #1697

Description

@Eshajha19

Dark/Light Toggle Not Working on Shopkeeper Page

📌 Issue Summary

The dark/light theme toggle is not functioning correctly on the Shopkeeper page. Clicking the toggle does not switch the theme as expected.

🔍 Expected Behavior

Clicking the theme toggle button should:

Switch between light and dark mode.

Apply the dark-mode class to the .

Persist the selected theme using localStorage.

Maintain the selected theme after page refresh.

❌ Current Behavior

Toggle button does not change the theme.

dark-mode class is not being applied to .

OR theme does not persist after refresh.

🛠 Possible Causes

Toggle JavaScript not properly included.

Button ID mismatch.

Missing dark-mode styles in CSS.

localStorage theme initialization not running on page load.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions