Skip to content

Commit 4cd60b6

Browse files
Editor: Correct padding value for styles.elements.spacing in theme.json.
Each of the four directions must be defined separately based on the schema, otherwise the code editor will throw a validation error. Follow-up to [54162]. Props aslamdoctor, wildworks. Fixes #63374. git-svn-id: https://develop.svn.wordpress.org/trunk@60217 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e7855d9 commit 4cd60b6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/wp-includes/theme.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,12 @@
373373
"background": "#32373c"
374374
},
375375
"spacing": {
376-
"padding": "calc(0.667em + 2px) calc(1.333em + 2px)"
376+
"padding": {
377+
"top": "calc(0.667em + 2px)",
378+
"right": "calc(1.333em + 2px)",
379+
"bottom": "calc(0.667em + 2px)",
380+
"left": "calc(1.333em + 2px)"
381+
}
377382
},
378383
"typography": {
379384
"fontSize": "inherit",

0 commit comments

Comments
 (0)