-
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
ColorGradientControl: Fix awkward padding in popover #43018
Conversation
Size Change: -6 B (0%) Total Size: 1.27 MB
ℹ️ View Unchanged
|
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.
Big improvement. Clunky padding above and left of the tabbar before:
Nice and compact after:
I'd encourage a code sanity check, but visually this is a good bugfix. (I still prefer the segmented control, but happy to try this 😅 )
I'm reminded that we have an opportunity to revisit the Swatch component as well — the swatch buttons are currently bigger inside the swatch panel than they are inside the ItemGroup. They should all be 20x20px:
That's separate to this PR, but it stood out.
Thank you for the work!
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.
Thanks for improving this @mirka 👍
The awkward padding introduced by #41900 has been addressed via this PR.
✅ Extra padding has been removed
✅ Color palette unit tests pass
While testing, I did notice the extraneous margin on the custom gradient picker. Perhaps this could be another small follow-up? That extra margin has been around for a long time by the looks of it.
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.
@jameskoster Good catch, thanks! Fixed in e38b7a8: |
@aaronrobertshaw Yes, I have a local branch with this fix and will make a PR soon 👍 |
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.
Thanks for the fix!
Part of #43014
What?
Fixes the awkward padding when the ColorGradientControl's tab switcher appears in a popover (#41900 (comment)).
Why?
There is actually a further redesign in the works, but that is going to take a little more time to achieve. So here is an easy, incremental step to make it less weird in the meantime.
How?
Testing Instructions
npm run dev
Screenshots or screencast
Before
After
CleanShot.2022-08-05.at.15.22.15.mp4