andoriyaprashant / andoriyaprashant/DevDocsHub

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

Ouverte
#3 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
5
Forks
52
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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](https://github.com/user-attachments/assets/cd1f183d-57ff-4303-939d-afc34ce43ec7)

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.