-
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
GradientPicker: Show custom picker before swatches #43577
Conversation
@jasmussen Now might be a good time to clean up these margins so they're logical and consistent with ColorPalette. Do you prefer a uniform value everywhere (16px?), or more space between the Type/Angle picker and the first swatch group? |
Size Change: +2.52 kB (0%) Total Size: 1.25 MB
ℹ️ View Unchanged
|
Thanks @jasmussen! I tightened the row gaps to a consistent 16px, and filed an issue for the theme gradient bug (#43715). Column gaps are all over the place at the moment 😐 Recently in Typography tools we actually tightened them to 8px to match Pablo's Figma mockups. I'll leave them be for this particular PR, and maybe we can establish some solid guidelines as part of #43423. |
Hmm, I'm not sure what you mean by "16px margin outside the tabbar" 🤔 Here is a larger screen recording for more context: CleanShot.2022-08-31.at.21.06.42.mp4 |
My mistake, I was insufficiently caffeinated this morning. That video looks good! |
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.
🚀
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.
Part of #43014
What?
Show the custom gradient picker before the swatches.
Why?
So they are more consistent with the ColorPicker for solid colors.
How?
The back compat behavior for
__nextHasNoMargin=false
is:clearable=false
Testing Instructions
npm run storybook:dev
and see the GradientPicker stories.npm run dev
and see the GradientPicker in the block inspector or Global Styles.Screenshots or screencast
CleanShot.2022-08-24.at.21.09.04.mp4