From 5b01c2274f791fca37338f1bd93691d307155216 Mon Sep 17 00:00:00 2001 From: Jason Crist Date: Tue, 8 Dec 2020 11:16:11 -0500 Subject: [PATCH] Supply default padding values for CODE block As expressed by TT1's CODE block styles: https://github.com/WordPress/twentytwentyone/blob/trunk/assets/sass/05-blocks/code/_style.scss The default padding value of the CODE block is now the default spacing unit. https://github.com/WordPress/gutenberg/pull/27582 is necessary for this enhancement to work. --- twentytwentyone-blocks/experimental-theme.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/twentytwentyone-blocks/experimental-theme.json b/twentytwentyone-blocks/experimental-theme.json index 721bc714..afbace32 100644 --- a/twentytwentyone-blocks/experimental-theme.json +++ b/twentytwentyone-blocks/experimental-theme.json @@ -289,5 +289,17 @@ "lineHeight": "var(--wp--custom--line-height--body)" } } + }, + "core/code": { + "styles": { + "spacing": { + "padding": { + "top": "var(--wp--custom--spacing--unit)", + "bottom": "var(--wp--custom--spacing--unit)", + "left": "var(--wp--custom--spacing--unit)", + "right": "var(--wp--custom--spacing--unit)" + } + } + } } }