Skip to content

Commit

Permalink
FIX(#7090): heading and label selectors has been edited
Browse files Browse the repository at this point in the history
  • Loading branch information
RagnarLodbrok94 committed Feb 5, 2024
1 parent b63d4a8 commit 6937c97
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions compatibility/bricks/widgets/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,10 @@ public function control_group_label_style() {
public function controls_label_style() {
$this->start_jet_control_group( 'section_label_style' );

$css_selector = $this->css_selector( '__label' );
$label_inner_selector = $this->css_selector( '__label-text' );
$css_selectors = array(
'label' => $this->css_selector( '__label' ),
'label-text' => $this->css_selector( '__label' ) . ' ' . $this->css_selector( '__label-text' ),
);

$this->register_jet_control(
'label_typography',
Expand All @@ -247,7 +249,7 @@ public function controls_label_style() {
'css' => array(
array(
'property' => 'typography',
'selector' => $label_inner_selector,
'selector' => $css_selectors['label-text'],
),
),
)
Expand All @@ -272,7 +274,7 @@ public function controls_label_style() {
'css' => array(
array(
'property' => 'margin',
'selector' => $css_selector,
'selector' => $css_selectors['label'],
),
),
)
Expand All @@ -287,7 +289,7 @@ public function controls_label_style() {
'css' => array(
array(
'property' => 'padding',
'selector' => $css_selector,
'selector' => $css_selectors['label'],
),
),
)
Expand All @@ -302,7 +304,7 @@ public function controls_label_style() {
'css' => array(
array(
'property' => 'border',
'selector' => $css_selector,
'selector' => $css_selectors['label'],
),
),
)
Expand Down Expand Up @@ -1110,8 +1112,9 @@ public function controls_heading_style() {
);

$css_selectors = array(
'label' => $this->css_selector( '__heading' ),
'desc' => $this->css_selector( '__heading-desc' ),
'label' => $this->css_selector( '__heading' ),
'label-text' => $this->css_selector( '__heading' ) . ' ' . $this->css_selector( '__label-text' ),
'desc' => $this->css_selector( '__heading-desc' ),
);

$this->register_jet_control(
Expand All @@ -1123,7 +1126,7 @@ public function controls_heading_style() {
'css' => array(
array(
'property' => 'typography',
'selector' => $css_selectors['label'],
'selector' => $css_selectors['label-text'],
),
),
)
Expand Down

0 comments on commit 6937c97

Please sign in to comment.