Skip to content

Commit

Permalink
Fix navigation close icon alignment.
Browse files Browse the repository at this point in the history
Fix useRootPaddingAwareAlignments by using an updated schema
which has the correct location for this setting.

As of this writing, this blog post does not contain the
correct example code for this setting. The setting must be
inside the settings object and not at the root:
https://make.wordpress.org/themes/2022/09/07/full-width-blocks-and-root-padding-in-wordpress-6-1/

The schema is correct and was fixed here:
WordPress/gutenberg#43624

The navigation block uses this setting to correctly render
the close icon:
WordPress/gutenberg#43576
  • Loading branch information
reid committed Sep 17, 2022
1 parent 024bbd9 commit 64d6ec5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions site/web/app/themes/jenner/theme.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/theme.json",
"version": 2,
"useRootPaddingAwareAlignments": true,
"styles": {
"spacing": {
"padding": {
"top": "0px",
"right": "10px",
"left": "10px",
"top": "20px",
"right": "5px",
"left": "0px",
"bottom": "0px"
}
},
Expand All @@ -32,6 +31,7 @@
}
},
"settings": {
"useRootPaddingAwareAlignments": true,
"appearanceTools": true,
"layout": {
"contentSize": "976px",
Expand Down

0 comments on commit 64d6ec5

Please sign in to comment.