-
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
CustomGradientPicker / Cover: Update UI #20099
CustomGradientPicker / Cover: Update UI #20099
Conversation
This update adjusts the UI/layout for elements related to the CustomGradientPicker, specifically as it appears in the `Cover` block.
Coordinated with @mapk + @karmatosed for some new icons for the Gradient Type selector. Above are the new icons with an update for selection UI (selected, hover, focus) |
Thanks for your work, @ItsJonQ! I noticed there's a bit of overlap on the two Gradient Type buttons. Is it possible to position these side-by-side instead of having the overlap? |
@mapk Thanks for feedback! I'll give it a shot. Just a heads up, from a code perspective, the updated button styles are a bit messy. This is due to the fact that we don't have a lot of direct control over them, and styles (both core and custom) and mixing together. Ultimately, we'll do whatever is best for UI/UX. |
If my next request requires a change beyond just this specific part, it can be disregarded. Borders that use a But if this is bigger than this PR, we can handle that elsewhere. Current: Proposed: |
This probably applies to my last comment as well. I hear ya. |
@mapk No worries! I was able to make the changes. How is this? It shows the inner/outer borders + border radius, as well as the spacing between each button. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the code size, these changes seem correct. Awesome work here in record time 👍
Let's wait for an ok from @mapk and ship this change :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful!!! LGTM Thank you, @ItsJonQ !
Description
This update adjusts the UI of the
CustomGradientPicker
, specifically as it appears in theCover
block.This is a follow up to Design suggestions from #19582 (comment)
How has this been tested?
Tested locally in Gutenberg
Screenshots
Solid Color
Gradient Color
Notes
These were the original design update suggestions:
I was able to make all of the updates with the exception of the
Clear
button. The reason is because of how the various UI pieces are composed together. The button actions area, which contains clear, is separate from the color/gradient controls:Making this update would require refactoring across multiple components. It's doable, but perhaps something to tackle after WP 5.4.
Checklist: