-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preformatted: Add spacing support (#45196)
* Preformatted: Add spacing support
- Loading branch information
Showing
3 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
.wp-block-preformatted { | ||
// This block has customizable padding, border-box makes that more predictable. | ||
box-sizing: border-box; | ||
white-space: pre-wrap; | ||
} | ||
|
||
.wp-block-preformatted.has-background { | ||
// Add low specificity default padding when a background is used. | ||
:where(.wp-block-preformatted.has-background) { | ||
padding: $block-bg-padding--v $block-bg-padding--h; | ||
} |
132c8e4
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.
Flaky tests detected in 132c8e4.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.
🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5641650626
📝 Reported issues:
specs/editor/various/allowed-patterns.test.js
specs/editor/various/allowed-patterns.test.js
/test/e2e/specs/editor/blocks/image.spec.js