Skip to content

Commit 5fe6d6e

Browse files
committedDec 6, 2024
Reset and enable Heading size control
1 parent 2e59a1f commit 5fe6d6e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎inc/elementor/class-typography.php

+11
Original file line numberDiff line numberDiff line change
@@ -2410,6 +2410,17 @@ public function tweak_container_borders( Element_Base $element ) {
24102410
* @param Element_Base $element Element_Base Class.
24112411
*/
24122412
public function add_typo_helper_link( Element_Base $element ) {
2413+
// Check and reset the condition to none at size control.
2414+
$size_control = $element->get_controls( 'size' );
2415+
if ( $size_control ) {
2416+
$element->update_control(
2417+
'size',
2418+
[
2419+
'condition' => [],
2420+
]
2421+
);
2422+
};
2423+
24132424
$element->start_injection(
24142425
array(
24152426
'of' => 'size',

0 commit comments

Comments
 (0)