From 01513a2e8d6111ec0e3b88304ef4148788c39cd1 Mon Sep 17 00:00:00 2001 From: Jason Crist Date: Tue, 8 Dec 2020 11:01:27 -0500 Subject: [PATCH 1/2] Added support for additional Block Supports to CODE block Added support for "padding" controls and styling of CODE block. Added support for "border" styling of CODE block (including color, style, width, radius. Added color support to code block --- packages/block-library/src/code/block.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/block-library/src/code/block.json b/packages/block-library/src/code/block.json index 728aff7ac7973e..60517a25ef5fce 100644 --- a/packages/block-library/src/code/block.json +++ b/packages/block-library/src/code/block.json @@ -17,6 +17,20 @@ "__experimentalSelector": ".wp-block-code > code", "typography": { "fontSize": true + }, + "spacing": { + "padding": true + }, + "__experimentalBorder": { + "radius": true, + "color": true, + "width": true, + "style": true + }, + "color": { + "text": true, + "background": true, + "gradients": true } }, "style": "wp-block-code" From dcdc3f73305b0f361bb935edd438daff08fb225b Mon Sep 17 00:00:00 2001 From: Marcus Kazmierczak Date: Mon, 25 Oct 2021 19:36:46 -0700 Subject: [PATCH 2/2] Add margin controls to spacing --- packages/block-library/src/code/block.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/block-library/src/code/block.json b/packages/block-library/src/code/block.json index 60517a25ef5fce..cf3ae6c984010a 100644 --- a/packages/block-library/src/code/block.json +++ b/packages/block-library/src/code/block.json @@ -19,6 +19,7 @@ "fontSize": true }, "spacing": { + "margin": [ "top", "bottom" ], "padding": true }, "__experimentalBorder": {