-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
ColorPicker: Color format toggle looks like a dropdown #18678
Comments
Here's a proposal for the color format selector using the dropdown pattern already found elsewhere. I felt that the button group takes too much space, and it's already a bit tight due to the color input fields. Using the dropdown approach allows us to keep the UI clean and provides the necessary affordance. Would love to hear what you think @richtabor @jasmussen @mapk. |
This is great @enriquesanchez! Perhaps the stock dropdown would work best as @jasmussen suggested. That's what we've migrated other similar dropdown utilizing components to (such as the FontSizePicker). Just to confirm, what would the label update to, if |
Thanks @richtabor and @jasmussen! I agree that the stock dropdown should be used here.
Thanks for raising this. I think it should just say "Color value", because we now have the color format specified on the dropdown. What do you think? |
Good idea; I think that'll work. |
What about using |
I wonder if |
@richtabor I think we'd still want to keep |
I like this direction, @enriquesanchez! Because we are using |
@mapk @richtabor Agreed, I think |
Was just thinking about this yesterday and spent some time on a few variations. Here's one of my fav's: I also explored having the hex/rgb/hsl input outside of the color picker: Checkout the Figma to see a bunch of options: https://www.figma.com/file/O7epVG8iWfNiNzdSm5RNyd/Component-Color-Picker?node-id=0%3A1 |
@shaunandrews I really like your mockups with the hex outside the color picker for two reasons:
Thanks for these explorations! |
I agree with @mapk on these! One thing I'm not sure about is how to have this coexist with the current pattern of having the theme palette visible. From your mockups @shaunandrews, it looks like the color palette will be visible only when the picker is invoked, right? |
Here's another version riffing off what @shaunandrews shared above: I still think that the color palette should be just one-click away, instead of hidden inside the color picker. I expect that to be useful for the majority of users, who might not know what those color formats are. I got rid of the label on each field (R, G, B, etc.) that I had on #18678 (comment) because this is not a common pattern and it's probably not really necessary here. Also in this version, I like how the selected color is bigger and clearer @richtabor @mapk @shaunandrews what do you think? |
Closing this in favor of #19785, which is exploring similar iterations to the color picker. Thanks @richtabor @mapk @shaunandrews for all the feedback and help. Let's continue moving this forward on that other issue. |
Describe the bug
The color format toggle (Hex, RGB, HSL) in the
ColorPicker
looks like a drodpown:Expected behavior
The element should look like toggle instead. It was suggested on #18448 to change the arrow for a different icon, to use a a ButtonGroup instead or to convert it to an actual Dropdown:
Let's explore these ideas and see which one feels the best.
The text was updated successfully, but these errors were encountered: