Skip to content

Commit

Permalink
Verse Block: Add support for Font Size (#27735)
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Dec 15, 2020
1 parent af885fd commit c4ba256
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/designers-developers/developers/themes/theme-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,6 @@ These are the current typography properties supported by blocks:
| Post Title | Yes | Yes | - | - | Yes | - | - |
| Site Tagline | Yes | Yes | - | - | Yes | - | - |
| Site Title | Yes | Yes | - | - | Yes | - | - |
| Verse | Yes | - | - | - | - | - | - |
| Verse | Yes | Yes | - | - | - | - | - |

[1] The heading block represents 6 distinct HTML elements: H1-H6. It comes with selectors to target each individual element (ex: core/heading/h1 for H1, etc).
3 changes: 2 additions & 1 deletion packages/block-library/src/verse/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
},
"supports": {
"anchor": true,
"__experimentalFontFamily": true
"__experimentalFontFamily": true,
"fontSize": true
},
"style": "wp-block-verse",
"editorStyle": "wp-block-verse-editor"
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/verse/editor.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
pre.wp-block-verse {
color: $gray-900;
white-space: nowrap;
font-size: inherit;
padding: 1em;
overflow: auto;
}

0 comments on commit c4ba256

Please sign in to comment.