From e13d8c9cd59bdd00a9621671d54cb174c6caa9ed Mon Sep 17 00:00:00 2001 From: Nick Diego Date: Fri, 26 Aug 2022 12:48:28 -0500 Subject: [PATCH] Add missing typography supports to the Button block. --- docs/reference-guides/core-blocks.md | 2 +- packages/block-library/src/button/block.json | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 3d2f9a11f91a2..b575272ab4b15 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -50,7 +50,7 @@ Prompt visitors to take action with a button-style link. ([Source](https://githu - **Name:** core/button - **Category:** design -- **Supports:** align, anchor, color (background, gradients, text), spacing (padding), typography (fontSize), ~~alignWide~~, ~~reusable~~ +- **Supports:** align, anchor, color (background, gradients, text), spacing (padding), typography (fontSize, lineHeight), ~~alignWide~~, ~~reusable~~ - **Attributes:** backgroundColor, gradient, linkTarget, placeholder, rel, text, textColor, title, url, width ## Buttons diff --git a/packages/block-library/src/button/block.json b/packages/block-library/src/button/block.json index d4a4f308721f8..c13de8aa57d83 100644 --- a/packages/block-library/src/button/block.json +++ b/packages/block-library/src/button/block.json @@ -68,8 +68,12 @@ }, "typography": { "fontSize": true, + "lineHeight": true, "__experimentalFontFamily": true, + "__experimentalFontWeight": true, + "__experimentalFontStyle": true, "__experimentalTextTransform": true, + "__experimentalLetterSpacing": true, "__experimentalDefaultControls": { "fontSize": true }