From 98fe1546e3db338ca466b1f4c9239aa9041c8f1e Mon Sep 17 00:00:00 2001 From: Sarah Norris <1645628+mikachan@users.noreply.github.com> Date: Fri, 4 Aug 2023 12:58:39 +0100 Subject: [PATCH] Footnotes: Add typography, dimensions, and border block supports (#53044) * Remove background and add link to default color controls * Add typography, dimensions, and border controls --- docs/reference-guides/core-blocks.md | 2 +- .../block-library/src/footnotes/block.json | 40 ++++++++++++++++++- 2 files changed, 39 insertions(+), 3 deletions(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 51813220e58240..d4675b0e01999f 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -275,7 +275,7 @@ Add a link to a downloadable file. ([Source](https://github.com/WordPress/gutenb - **Name:** core/footnotes - **Category:** text -- **Supports:** color (background, link, text), ~~html~~, ~~multiple~~, ~~reusable~~ +- **Supports:** color (background, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~, ~~multiple~~, ~~reusable~~ - **Attributes:** ## Classic diff --git a/packages/block-library/src/footnotes/block.json b/packages/block-library/src/footnotes/block.json index 6a94c42eb42e51..28b094f24f9164 100644 --- a/packages/block-library/src/footnotes/block.json +++ b/packages/block-library/src/footnotes/block.json @@ -9,16 +9,52 @@ "textdomain": "default", "usesContext": [ "postId", "postType" ], "supports": { + "__experimentalBorder": { + "radius": true, + "color": true, + "width": true, + "style": true, + "__experimentalDefaultControls": { + "radius": false, + "color": false, + "width": false, + "style": false + } + }, "color": { + "background": true, "link": true, + "text": true, "__experimentalDefaultControls": { - "background": true, + "link": true, "text": true } }, "html": false, "multiple": false, - "reusable": false + "reusable": false, + "spacing": { + "margin": true, + "padding": true, + "__experimentalDefaultControls": { + "margin": false, + "padding": false + } + }, + "typography": { + "fontSize": true, + "lineHeight": true, + "__experimentalFontFamily": true, + "__experimentalTextDecoration": true, + "__experimentalFontStyle": true, + "__experimentalFontWeight": true, + "__experimentalLetterSpacing": true, + "__experimentalTextTransform": true, + "__experimentalWritingMode": true, + "__experimentalDefaultControls": { + "fontSize": true + } + } }, "style": "wp-block-footnotes" }