Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add block nesting governance schema updates and docs #43801

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions docs/how-to-guides/themes/theme-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,46 @@ Note that the name of the variable is created by adding `--` in between each nes

#### Settings examples

- Enable a specifc colour for a nested block, from the color palette:

```json
{
"version": 2,
"settings": {
"color": {
"palette": [
{
"slug": "red",
"name": "Red",
"color": "#ce0808"
},
{
"slug": "light",
"name": "Light",
"color": "#f5f7f9"
}
]
},
"blocks": {
"core/quote": {
"core/heading": {
"color": {
"text": true,
"palette": [
{
"slug": "red",
"name": "Red",
"color": "#ce0808"
}
]
}
}
}
}
}
}
```

- Enable custom colors only for the paragraph block:

```json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ Border styles.
| radius | undefined | |
| style | string | |
| width | string | |
| top | undefined | |
| right | undefined | |
| bottom | undefined | |
| left | undefined | |
| top | object | color, style, width |
| right | object | color, style, width |
| bottom | object | color, style, width |
| left | object | color, style, width |

---

Expand Down
Loading