-
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: Hard deprecate outer margins #58699
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core SVNIf you're a Core Committer, use this list when committing to
GitHub Merge commitsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -91 B (0%) Total Size: 1.69 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.
🚀
Part of #39358
What?
Promotes
__nextHasNoMargin
on CustomGradientPicker to the default behavior.Why?
The deprecation grace period has elapsed.
Testing Instructions
In the Storybook for CustomGradientPicker, turn on the margin checker tool in the toolbar. The margin-free styles should now be the default, and the
__nextHasNoMargin
prop should not be listed in the props table.✅ CustomGradientPicker is not directly used in the Gutenberg app.
✅ All internal components that use CustomGradientPicker under the hood are already using it in margin-free mode.
✍️ Dev Note
A number of UI components currently ship with styles that give them top and/or bottom margins. This can make it hard to reuse them in arbitrary layouts, where you want different amounts of gap or margin between components. To better suit modern layout needs, we are in the process of deprecating these outer margins
A few releases ago, we deprecated the outer margins on a number of components and introduced transitional props so consumers could opt into these new styles before they become the default:
AnglePickerControl
:__nextHasNoMarginBottom
CustomGradientPicker
:__nextHasNoMargin
FontSizePicker
:__nextHasNoMarginBottom
GradientPicker
:__nextHasNoMargin
In WordPress 6.5, these margin-free styles have become the default. Any use of these props can be safely removed.