Skip to content

Commit 7bb62f4

Browse files
Editor: Fix specificity of core block style variations.
Adds styles for default block style variations to core `theme.json` so they can override core element styles where needed. Props aaronrobertshaw, isabel_brison. Follows r58241. See #61165. git-svn-id: https://develop.svn.wordpress.org/trunk@58393 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 1537f00 commit 7bb62f4

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

src/wp-includes/theme.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,40 @@
332332
}
333333
},
334334
"styles": {
335+
"blocks": {
336+
"core/button": {
337+
"variations": {
338+
"outline": {
339+
"border": {
340+
"width": "2px",
341+
"style": "solid",
342+
"color": "currentColor"
343+
},
344+
"color": {
345+
"text": "currentColor",
346+
"gradient": "transparent none"
347+
},
348+
"spacing": {
349+
"padding": {
350+
"top": "0.667em",
351+
"right": "1.33em",
352+
"bottom": "0.667em",
353+
"left": "1.33em"
354+
}
355+
}
356+
}
357+
}
358+
},
359+
"core/site-logo": {
360+
"variations": {
361+
"rounded": {
362+
"border": {
363+
"radius": "9999px"
364+
}
365+
}
366+
}
367+
}
368+
},
335369
"elements": {
336370
"button": {
337371
"color": {

0 commit comments

Comments
 (0)