-
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
URLInput: Deprecate bottom margin #46692
Conversation
Size Change: +180 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
74c74a0
to
1ec0079
Compare
@@ -10,6 +10,7 @@ | |||
|
|||
- `URLInput`: the `renderSuggestions` callback prop now receives `currentInputValue` as a new parameter ([45806](https://github.com/WordPress/gutenberg/pull/45806)). |
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.
I see that URLInput
is included in the changelog already. Should I have added my PR below, or is it fine the way I did 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.
This way is fine 👍
@@ -10,6 +10,7 @@ | |||
|
|||
- `URLInput`: the `renderSuggestions` callback prop now receives `currentInputValue` as a new parameter ([45806](https://github.com/WordPress/gutenberg/pull/45806)). |
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 way is fine 👍
since: '6.1', | ||
version: '6.4', |
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.
since: '6.1', | |
version: '6.4', | |
since: '6.2', | |
version: '6.5', |
I guess this will now be 6.2 because 6.1 was already released.
0e165a0
to
d315f19
Compare
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.
Looks good 🚢
Part of #39358
Part of #38730
What?
Adds a
__nextHasNoMarginBottom
prop to remove the bottom margin.Why?
For easier reuse and consistency in spacing.
How?
This PR just adds the flags. The in-repo migration and official deprecation tasks will continue to be tracked at #39358.
Testing Instructions
Dev Note
This note could be merged with the note in #38730
Components with deprecated margin styles
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 will gradually deprecate these outer margins. A deprecation will begin with an opt-in period where you can choose to apply the new margin-free styles on a given component instance. Eventually in a future version, the margins will be completely removed.
In WordPress 6.2, the bottom margin on the
URLInput
component has been deprecated.To start opting into the new margin-free styles, set the
__nextHasNoMarginBottom
prop totrue
: