-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Enhancement: Dark/Light mode toggle can be confusing #726
Comments
I like this proposal! Thanks Greg. |
Hi, Can I please work on this issue? |
The Chocolatey website shows yet another aproach: a drop-down with explicit options. The nice thing about this is that it includes a browser-detection option. |
@benjagm Hi, can I work on this? |
@JeelRajodiya Please go ahead. Have you seen Greg's last proposal? |
Yes. I think we might need to use a UI library if we want create a drop down list. Are we using any UI library in the website? I tried looking in the codebase but couldn't find any. on a side note, this is how it looks like if we make changes as per greg's initial proposal |
We are exploring https://ui.shadcn.com/ |
Hi @JeelRajodiya there's a plan to implement ShadCN UI lib. but since this is currently in the planning the above dropdown feature can be implemented using |
Thanks Dhairya. I tried using I think using a UI library would be a better option. for now I am tying to implement it though some manual logic. |
Could you also check why do we have to click the toggle button multiple times to switch the theme (on a fresh load), this has started to bug me. |
@DarhkVoyd Do you mean the improper icon colors shown in the image below? |
It takes two clicks to change the theme. Screen.Recording.2024-06-17.at.8.49.36.PM.mov |
Thankss! I will look into this |
Fixed! |
Is your feature request related to a problem? Please describe
The dark/light mode button in the upper left of every page operates to say, "click this to go to the mode indicated by the icon." For example, in dark mode, it shows a sun; and in light mode, it shows a moon.
It shows the mode that that clicking the button would result in. However, typically, I think of a toggle as showing the mode that you are in.
That said, I can also see that some people might expect the current behavior.
As a result, I'm not sure that the current button adequately caters to all perspectives. It might seem correct for some, but it's definitely backwards for me.
Describe the solution you'd like
https://chirpy.cotes.page/ uses a single icon that's just color-flipped with the theme. The icon indicates both light and dark, indicating that the button toggles between them.
Our current button shows the state, but Chirpy's doesn't. Chirpy's doesn't carry a state because the theme is the state. You can plainly see which mode you're in. The button icon merely needs to indicate that it changes the state.
I'm not saying we need to use this icon, but I think this approach is better.
Describe alternatives you've considered
The other option is to have a slider toggle, but that takes up more room on the page, and doesn't really fit with the iconography theme we have in the upper right of just single icons.
Additional context
No response
Are you working on this?
No
The text was updated successfully, but these errors were encountered: