Skip to content

Commit 258b1a9

Browse files
committed
Fix Typography control for deprecated schemes
1 parent 133aae4 commit 258b1a9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

inc/elementor/class-typography.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,9 @@ public function register_typography_sizes( Controls_Stack $element, $section_id
321321
array(
322322
'name' => 'ang_size_' . $setting[0],
323323
'label' => __( 'Heading', 'ang' ) . ' ' . $setting[1],
324-
'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
324+
'global' => [
325+
'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
326+
],
325327
'selector' => $selectors,
326328
'exclude' => $size_controls,
327329
)
@@ -360,7 +362,9 @@ public function register_typography_sizes( Controls_Stack $element, $section_id
360362
array(
361363
'name' => 'ang_text_size_' . $setting[0],
362364
'label' => __( 'Text', 'ang' ) . ' ' . $setting[1],
363-
'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
365+
'global' => [
366+
'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
367+
],
364368
'selector' => "{{WRAPPER}} .elementor-widget-heading .elementor-heading-title.elementor-size-{$setting[0]}:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6)",
365369
'exclude' => $size_controls,
366370
)

0 commit comments

Comments
 (0)