From d20c68f9dfa8b175ce502dd0efae531897a71e32 Mon Sep 17 00:00:00 2001 From: isabel_brison Date: Wed, 12 Jun 2024 06:11:13 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@58393 git-svn-id: http://core.svn.wordpress.org/trunk@57842 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.json | 34 ++++++++++++++++++++++++++++++++++ wp-includes/version.php | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/wp-includes/theme.json b/wp-includes/theme.json index c2ea0e7193..32873854e4 100644 --- a/wp-includes/theme.json +++ b/wp-includes/theme.json @@ -332,6 +332,40 @@ } }, "styles": { + "blocks": { + "core/button": { + "variations": { + "outline": { + "border": { + "width": "2px", + "style": "solid", + "color": "currentColor" + }, + "color": { + "text": "currentColor", + "gradient": "transparent none" + }, + "spacing": { + "padding": { + "top": "0.667em", + "right": "1.33em", + "bottom": "0.667em", + "left": "1.33em" + } + } + } + } + }, + "core/site-logo": { + "variations": { + "rounded": { + "border": { + "radius": "9999px" + } + } + } + } + }, "elements": { "button": { "color": { diff --git a/wp-includes/version.php b/wp-includes/version.php index 596cf7933e..538018ef66 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-beta2-58392'; +$wp_version = '6.6-beta2-58393'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.