DISCOVER-Cookbook icon indicating copy to clipboard operation
DISCOVER-Cookbook copied to clipboard

[Enhancement]: Confusing UI/UX for Theme Switcher Button

Open Biswas-Samrat opened this issue 11 months ago • 6 comments

Type of Enhancement

Proposing a minor new measure (🍎 or ✅) within an existing section

Relevant Page(s) URL (if applicable)

https://discover-cookbook.numfocus.org/

Current Content Snippet (Optional, but helpful)

The theme switcher button displays the text/icon corresponding to the current active theme, for example, a sun icon ☀️ when the theme is already light.

Proposed Enhancement / Suggestion

I propose modifying the logic for the theme switcher button to display the mode that will be applied after clicking it.

When the site is in Light Mode: The button should display the Dark Mode icon (a moon 🌙) and/or the label "Dark".

When the site is in Dark Mode: The button should display the Light Mode icon (a sun ☀️) and/or the label "Light".

Example:

If the user is currently viewing the page with a white background (Light Mode), the button should show a black moon icon 🌙.

If the user is currently viewing the page with a black background (Dark Mode), the button should show a white sun icon ☀️.

Rationale & Expected Impact

This enhancement is valuable because it improves the clarity and usability of the entire platform's interface. The current behavior (button shows current state) creates confusion, forcing users to pause and think about what clicking the button will do. Switching the label to reflect the next state (button shows "Light" when the theme is Dark) makes the functionality immediate and intuitive, reducing friction.

Additional Resources / Further Reading

Since this is standard UI/UX best practice, This is reference general design principles .

Note the theme switch button in react official website

  • https://react.dev/

Contribution

Biswas-Samrat avatar Dec 06 '25 18:12 Biswas-Samrat

@AR21SM Assign this issue to me

Biswas-Samrat avatar Dec 06 '25 18:12 Biswas-Samrat

is the issue resolved?

Harish-Nesrekar avatar Dec 26 '25 13:12 Harish-Nesrekar

@AR21SM Assign this issue to me

Ronak-si avatar Jan 07 '26 11:01 Ronak-si

This is addressed in PR #452. Let me know if anything else is missing.

amishamehta99 avatar Jan 15 '26 08:01 amishamehta99

Hi! I’d like to work on improving the theme switcher UI/UX. Could you confirm if there are any specific pain points or expectations?

amishamehta99 avatar Jan 15 '26 08:01 amishamehta99

Hi, I’ve already worked on improving the theme switcher UX by adding tooltip and aria-label in PR #455. I’d like to further address the confusion described here (icon meaning / next state clarity). Please let me know if this approach works.

amishamehta99 avatar Jan 15 '26 10:01 amishamehta99