summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorSergey Biryukov <sergeybiryukov@git.wordpress.org>2025-05-04 19:11:36 +0000
committerSergey Biryukov <sergeybiryukov@git.wordpress.org>2025-05-04 19:11:36 +0000
commit4cd60b634b92bdf5bca7096dee7dac76ce48824f (patch)
tree69bc54df9c5ecd45253ca7201e5e695d125a20ff /src
parente7855d934861319deb0e2757a25d00a4d0ff90d6 (diff)
downloadwordpress-4cd60b634b92bdf5bca7096dee7dac76ce48824f.tar.gz
wordpress-4cd60b634b92bdf5bca7096dee7dac76ce48824f.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/wp-includes/theme.json7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wp-includes/theme.json b/src/wp-includes/theme.json
index 32873854e4..641c379557 100644
--- a/src/wp-includes/theme.json
+++ b/src/wp-includes/theme.json
@@ -373,7 +373,12 @@
"background": "#32373c"
},
"spacing": {
- "padding": "calc(0.667em + 2px) calc(1.333em + 2px)"
+ "padding": {
+ "top": "calc(0.667em + 2px)",
+ "right": "calc(1.333em + 2px)",
+ "bottom": "calc(0.667em + 2px)",
+ "left": "calc(1.333em + 2px)"
+ }
},
"typography": {
"fontSize": "inherit",