Fix reusable block horizontal padding regression.#21312
Merged
Conversation
|
Size Change: +20 B (0%) Total Size: 889 kB
ℹ️ View Unchanged
|
Contributor
https://github.com/WordPress/gutenberg/pull/21099/files#diff-ee2ed3adbe2578628039530c717a9a93R640 introduced a padding attached to the is-root-container. But a reusable block is also a root container. This PR unsets that.
fe90811 to
abb52be
Compare
Contributor
Author
|
Nice catch, I'll address that in a separate PR, because this PR is only about the horizontal paddings and therefore relatively "safe", but the fix you suggest needs a little bit more scrutiny. |
jasmussen
added a commit
that referenced
this pull request
Apr 8, 2020
This is a followup and addition to #21312. It's separate because it's not a regression.
Contributor
Author
|
I created #21472 to fix the vertical margin separately. Also pushed a small fix to address a navigation mode border shift. |
Contributor
|
Thanks @jasmussen. In that case, I think this one is good to go. Nice fix! |
Contributor
Author
|
Thanks! Can you approve the PR? |
MichaelArestad
approved these changes
Apr 8, 2020
Contributor
|
Done! |
jasmussen
added a commit
that referenced
this pull request
Apr 10, 2020
This is a followup and addition to #21312. It's separate because it's not a regression.
jasmussen
added a commit
that referenced
this pull request
Apr 10, 2020
This is a followup and addition to #21312. It's separate because it's not a regression.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



https://github.com/WordPress/gutenberg/pull/21099/files#diff-ee2ed3adbe2578628039530c717a9a93R640 introduced a padding attached to the is-root-container. But a reusable block is also a root container.
This PR unsets that.
Before:
After: