mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02:00
Editor: Fix instance element styles for links applying to buttons.
These changes fix the selector used by block instance element styles for links so they do not get incorrectly applied to buttons. Props aaronrobertshaw, freewebmentor, mukesh27. Fixes #60557. Built from https://develop.svn.wordpress.org/trunk@57664 git-svn-id: http://core.svn.wordpress.org/trunk@57165 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
433fd94980
commit
a4aeb71603
@ -166,8 +166,8 @@ function wp_render_elements_support_styles( $pre_render, $block ) {
|
|||||||
'skip' => $skip_button_color_serialization,
|
'skip' => $skip_button_color_serialization,
|
||||||
),
|
),
|
||||||
'link' => array(
|
'link' => array(
|
||||||
'selector' => ".$class_name a",
|
'selector' => ".$class_name a:where(:not(.wp-element-button))",
|
||||||
'hover_selector' => ".$class_name a:hover",
|
'hover_selector' => ".$class_name a:where(:not(.wp-element-button)):hover",
|
||||||
'skip' => $skip_link_color_serialization,
|
'skip' => $skip_link_color_serialization,
|
||||||
),
|
),
|
||||||
'heading' => array(
|
'heading' => array(
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.5-beta1-57663';
|
$wp_version = '6.5-beta1-57664';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user