Skip to content

Commit

Permalink
Add docs for useRootPaddingAwareAlignments in theme.json (#43463)
Browse files Browse the repository at this point in the history
* Add docs for useRootPaddingAwareAlignments in theme.json

* Add future release version.
  • Loading branch information
tellthemachines authored Aug 22, 2022
1 parent de3dcae commit d4a8898
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/reference-guides/theme-json-reference/theme-json-living.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ Setting that enables the following UI tools:
- typography: lineHeight


---

### 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.


---

### border
Expand Down
9 changes: 9 additions & 0 deletions schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
}
}
},
"settingsPropertiesUseRootPaddingAwareAlignments": {
"properties": {
"useRootPaddingAwareAlignments": {
"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
}
}
},
"settingsPropertiesBorder": {
"properties": {
"border": {
Expand Down

0 comments on commit d4a8898

Please sign in to comment.