-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix design of color/gradient controls in editor panel #26255
Fix design of color/gradient controls in editor panel #26255
Conversation
- switch label position to side on control for gradient type - use flex blocks to wrap type and angle controls
for CircularOptionPicker - restore default horizontal spacing as equal to vertical - improve accuracy of negative margin swatch wrapping correction - drop a purposeless rule for PanelColorGradientSettingsInner - create media query bound optimization for six swatches per line
c2d2a6d
to
f23a398
Compare
CC @jasmussen and @ItsJonQ because of their work in #23802 |
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.
This is a good one.
Before:
After:
I was worried that the "Type" label would be vastly longer in german or other languages, though it appears that particular phrase hasn't yet been widely translated. So I manually found the longest version of "Type" that I could on Google Translate, and even in (what I hope is) Malay it works:
Well done. And thank you.
I would love for this to get a few more code-review eyes before merge, but from what I can tell, this is solid, including the code. Nice little win.
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 me! Great use of the Flex
components @stokesman . That 5/4
combo is an interesting one! :)
Thanks for reviewing Joen and Jon! |
#23802 had a lot of good improvements and this follows up on that addressing three issues.
Since it was merged the default position of labels in
SelectControl
changed SelectControl: Fix labelPosition #25427, throwing the alignment off inCustomGradienPicker
.The change to make the swatches align on the right side with their neighboring controls CustomGradientPicker: Update Type and Angle controls #23802 (comment) currently only works when there is no scrollbar on the settings sidebar and can be improved to work with or without scrollbars.
The "dial" of the
AnglePickerControl
was able to push out of alignment (to the right) when the settings sidebar has a scrollbar.All of the above can be noted in the "before" screen capture below.
After screen recording comparing settings sidebar with and without overflow
Before screen recording comparing settings sidebar with and without overflow
An aside is the
AnglePickerControl
gets a default label which according to its readme it already had.How has this been tested?
Wordpress 5.5.1, Chrome 85
Resolutions from 280 to 1440.
Types of changes
Non-breaking design fixes
Accessibility fix
Checklist: