Skip to content

Commit

Permalink
Revert "Verse Block: Adds support for custom padding (#27341)" (#27561)
Browse files Browse the repository at this point in the history
This reverts commit a6e0b02.
  • Loading branch information
guarani authored Dec 7, 2020
1 parent e5b9df1 commit 873f941
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 35 deletions.
1 change: 0 additions & 1 deletion docs/designers-developers/developers/themes/theme-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ These are the current color properties supported by blocks:
| --- | --- |
| Cover | Yes |
| Group | Yes |
| Verse | Yes |

#### Typography Properties

Expand Down
17 changes: 1 addition & 16 deletions packages/block-library/src/verse/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,12 @@
"default": "",
"__unstablePreserveWhiteSpace": true
},
"style": {
"default": {
"spacing": {
"padding": {
"top": 20,
"right": 20,
"bottom": 20,
"left": 20
}
}
}
},
"textAlign": {
"type": "string"
}
},
"supports": {
"anchor": true,
"__experimentalFontFamily": true,
"spacing": {
"padding": true
}
"__experimentalFontFamily": true
}
}
1 change: 1 addition & 0 deletions packages/block-library/src/verse/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ pre.wp-block-verse {
color: $gray-900;
white-space: nowrap;
font-size: inherit;
padding: 1em;
overflow: auto;
}
6 changes: 3 additions & 3 deletions packages/e2e-tests/fixtures/blocks/core__verse.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<!-- wp:verse -->
<pre class="wp-block-verse" style="padding-bottom:20px;padding-left:20px;padding-right:20px;padding-top:20px">A <em>verse</em><br>And more!</pre>
<!-- /wp:verse -->
<!-- wp:core/verse -->
<pre class="wp-block-verse">A <em>verse</em><br>And more!</pre>
<!-- /wp:core/verse -->
14 changes: 2 additions & 12 deletions packages/e2e-tests/fixtures/blocks/core__verse.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,9 @@
"name": "core/verse",
"isValid": true,
"attributes": {
"content": "A <em>verse</em>…<br>And more!",
"style": {
"spacing": {
"padding": {
"top": 20,
"right": 20,
"bottom": 20,
"left": 20
}
}
}
"content": "A <em>verse</em>…<br>And more!"
},
"innerBlocks": [],
"originalContent": "<pre class=\"wp-block-verse\" style=\"padding-bottom:20px;padding-left:20px;padding-right:20px;padding-top:20px\">A <em>verse</em>…<br>And more!</pre>"
"originalContent": "<pre class=\"wp-block-verse\">A <em>verse</em>…<br>And more!</pre>"
}
]
4 changes: 2 additions & 2 deletions packages/e2e-tests/fixtures/blocks/core__verse.parsed.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"blockName": "core/verse",
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n<pre class=\"wp-block-verse\" style=\"padding-bottom:20px;padding-left:20px;padding-right:20px;padding-top:20px\">A <em>verse</em>…<br>And more!</pre>\n",
"innerHTML": "\n<pre class=\"wp-block-verse\">A <em>verse</em>…<br>And more!</pre>\n",
"innerContent": [
"\n<pre class=\"wp-block-verse\" style=\"padding-bottom:20px;padding-left:20px;padding-right:20px;padding-top:20px\">A <em>verse</em>…<br>And more!</pre>\n"
"\n<pre class=\"wp-block-verse\">A <em>verse</em>…<br>And more!</pre>\n"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<!-- wp:verse -->
<pre class="wp-block-verse" style="padding-bottom:20px;padding-left:20px;padding-right:20px;padding-top:20px">A <em>verse</em><br>And more!</pre>
<pre class="wp-block-verse">A <em>verse</em><br>And more!</pre>
<!-- /wp:verse -->

0 comments on commit 873f941

Please sign in to comment.