Skip to content

#bug: Dark Mode toggle button text does not update to reflect current mode. #3

Description

@omjadhav18

In the current implementation while switching between dark mode to light mode the text of the button remains the same i.e. dark mode.
Screenshot 2024-10-01 185137

Steps to Reproduce:

  1. Click on the "Dark Mode" button to enable dark mode.
  2. Notice that the button text remains "Dark Mode" even though the page has switched to dark mode.

Expected Behavior: When dark mode is enabled, the button text should change to "Light Mode" to allow users to switch back to light mode. Similarly, when the light mode is active, the button text should display "Dark Mode."

Proposed Solution:

  1. Update the button text dynamically based on the current theme mode (dark or light) by checking whether the dark mode is active and adjusting the button text accordingly.

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