From 9d829bceaf58146af54e3fef687bc826b5daf08b Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Mon, 22 Aug 2022 12:17:10 +1000 Subject: [PATCH 1/2] Add docs for useRootPaddingAwareAlignments in theme.json --- .../theme-json-reference/theme-json-living.md | 9 +++++++++ schemas/json/theme.json | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/docs/reference-guides/theme-json-reference/theme-json-living.md b/docs/reference-guides/theme-json-reference/theme-json-living.md index fdbf14d6b9379b..2fcaca94ebef72 100644 --- a/docs/reference-guides/theme-json-reference/theme-json-living.md +++ b/docs/reference-guides/theme-json-reference/theme-json-living.md @@ -26,6 +26,15 @@ Setting that enables the following UI tools: - typography: lineHeight +--- + +### useRootPaddingAwareAlignments + +Enables root padding (the values from `styles.spacing.padding`) to be applied to the contents of full-width blocks instead of the root block. + +Please note that when using this setting, `styles.spacing.padding` should always be set as an object with `top`, `right`, `bottom`, `left` values declared separately. + + --- ### border diff --git a/schemas/json/theme.json b/schemas/json/theme.json index 9fef064661d058..87ec64f6c861c4 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -16,6 +16,15 @@ } } }, + "settingsPropertiesUseRootPaddingAwareAlignments": { + "properties": { + "useRootPaddingAwareAlignments": { + "description": "Enables root padding (the values from `styles.spacing.padding`) to be applied to the contents of full-width blocks instead of the root block.\n\nPlease note that when using this setting, `styles.spacing.padding` should always be set as an object with `top`, `right`, `bottom`, `left` values declared separately.", + "type": "boolean", + "default": false + } + } + }, "settingsPropertiesBorder": { "properties": { "border": { From f42f9bf0a61766658a45ba59bdc1e65e7820b0b3 Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Mon, 22 Aug 2022 12:20:46 +1000 Subject: [PATCH 2/2] Add future release version. --- docs/reference-guides/theme-json-reference/theme-json-living.md | 2 ++ schemas/json/theme.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/reference-guides/theme-json-reference/theme-json-living.md b/docs/reference-guides/theme-json-reference/theme-json-living.md index 2fcaca94ebef72..7c9b7f75da5d45 100644 --- a/docs/reference-guides/theme-json-reference/theme-json-living.md +++ b/docs/reference-guides/theme-json-reference/theme-json-living.md @@ -30,6 +30,8 @@ Setting that enables the following UI tools: ### useRootPaddingAwareAlignments +_**Note:** Since WordPress 6.1._ + Enables root padding (the values from `styles.spacing.padding`) to be applied to the contents of full-width blocks instead of the root block. Please note that when using this setting, `styles.spacing.padding` should always be set as an object with `top`, `right`, `bottom`, `left` values declared separately. diff --git a/schemas/json/theme.json b/schemas/json/theme.json index 87ec64f6c861c4..b177bbf8af3e06 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -19,7 +19,7 @@ "settingsPropertiesUseRootPaddingAwareAlignments": { "properties": { "useRootPaddingAwareAlignments": { - "description": "Enables root padding (the values from `styles.spacing.padding`) to be applied to the contents of full-width blocks instead of the root block.\n\nPlease note that when using this setting, `styles.spacing.padding` should always be set as an object with `top`, `right`, `bottom`, `left` values declared separately.", + "description": "_**Note:** Since WordPress 6.1._\n\nEnables root padding (the values from `styles.spacing.padding`) to be applied to the contents of full-width blocks instead of the root block.\n\nPlease note that when using this setting, `styles.spacing.padding` should always be set as an object with `top`, `right`, `bottom`, `left` values declared separately.", "type": "boolean", "default": false }