ColorGradientControl: Fix awkward padding in popover#43018
Conversation
|
Size Change: -6 B (0%) Total Size: 1.27 MB
ℹ️ View Unchanged
|
jasmussen
left a comment
There was a problem hiding this comment.
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!
aaronrobertshaw
left a comment
There was a problem hiding this comment.
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.
|
@jameskoster Good catch, thanks! Fixed in e38b7a8: |
@aaronrobertshaw Yes, I have a local branch with this fix and will make a PR soon 👍 |








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 devScreenshots or screencast
Before
After
CleanShot.2022-08-05.at.15.22.15.mp4