From 323f2f0e9c120f89fe5ef480bc5d1b84146b3b75 Mon Sep 17 00:00:00 2001 From: Ben Dwyer Date: Tue, 15 Dec 2020 11:46:20 +0000 Subject: [PATCH] Verse Block: Add support for Font Size --- docs/designers-developers/developers/themes/theme-json.md | 2 +- packages/block-library/src/verse/block.json | 3 ++- packages/block-library/src/verse/editor.scss | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/designers-developers/developers/themes/theme-json.md b/docs/designers-developers/developers/themes/theme-json.md index eedc3278c3b30..cf1412b06ddc2 100644 --- a/docs/designers-developers/developers/themes/theme-json.md +++ b/docs/designers-developers/developers/themes/theme-json.md @@ -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). diff --git a/packages/block-library/src/verse/block.json b/packages/block-library/src/verse/block.json index ce6936ab7f40c..be3cb69adf0bf 100644 --- a/packages/block-library/src/verse/block.json +++ b/packages/block-library/src/verse/block.json @@ -16,7 +16,8 @@ }, "supports": { "anchor": true, - "__experimentalFontFamily": true + "__experimentalFontFamily": true, + "fontSize": true }, "style": "wp-block-verse", "editorStyle": "wp-block-verse-editor" diff --git a/packages/block-library/src/verse/editor.scss b/packages/block-library/src/verse/editor.scss index 737bfc159ffc9..bd22b79311325 100644 --- a/packages/block-library/src/verse/editor.scss +++ b/packages/block-library/src/verse/editor.scss @@ -1,7 +1,6 @@ pre.wp-block-verse { color: $gray-900; white-space: nowrap; - font-size: inherit; padding: 1em; overflow: auto; }