-
Notifications
You must be signed in to change notification settings - Fork 329
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
Ternary button for theme/color mode is an anti-pattern #1941
Comments
I feel that there are two slightly separate discussions here, this is how I interpreted it:
I think switching to a dropdown is an excellent idea. I don't pay much attention to the icons, and just click the button rapidly until I get the desired theme, often cycling multiple times so I'd personally also prefer the dropdown. From a UX perspective, a dropdown will:
I did a quick mockup of this on Figma, however, this is not a new design and is reusing the dropdown component we already use in the theme, along with options that have icons next to them. |
Please make sure this uses as little space as possible. Space in the navigation bar is limited. While I find a dark/light mode setting useful I don’t want to waste more space than necessary on it. |
Thanks @timhoffm, that's good feedback. I'm not opposed to having it be an icon dropdown, meaning that in the navbar it remains an icon the same size as before. When clicked, it opens up a dropdown menu like the one in @smeragoel's Figma. Then when the user chooses an option from the menu, the menu closes and the icon in the navbar is updated to reflect the option that the user chose. |
There was a discussion about the light/dark/auto button, and there was general support to make it more like the one in the MDN docs.
The text was updated successfully, but these errors were encountered: