Skip to content

Commit

Permalink
FIX: return percentage unit for fields_width control in the Element…
Browse files Browse the repository at this point in the history
…or widget

UPD: phpcs formatting
  • Loading branch information
girafffee committed Apr 12, 2024
1 parent 7c22c4a commit 0f8f543
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions compatibility/elementor/widgets/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,7 @@ protected function register_controls() {
'label' => __( 'Gap between control and label', 'jet-form-builder' ),
'type' => Controls_Manager::SLIDER,
'size_units' => array( 'px', 'em', 'rem', 'custom' ),
'default' => array(
'default' => array(
'size' => 8,
),
'range' => array(
Expand Down Expand Up @@ -1743,7 +1743,7 @@ protected function register_controls() {
array(
'label' => __( 'Fields width', 'jet-form-builder' ),
'type' => Controls_Manager::SLIDER,
'size_units' => array( 'px', 'em', 'rem', 'custom' ),
'size_units' => array( 'px', '%', 'em', 'rem', 'custom' ),
'range' => array(
'px' => array(
'min' => 50,
Expand Down Expand Up @@ -2892,8 +2892,8 @@ protected function register_controls() {
$this->add_group_control(
Group_Control_Typography::get_type(),
array(
'name' => 'booking_form_submit_typography',
'selector' => $this->selector( '__action-button' ),
'name' => 'booking_form_submit_typography',
'selector' => $this->selector( '__action-button' ),
)
);

Expand All @@ -2903,7 +2903,7 @@ protected function register_controls() {
'label' => esc_html__( 'Padding', 'jet-form-builder' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => array( 'px', '%', 'em', 'rem', 'custom' ),
'separator' => 'before',
'separator' => 'before',
'selectors' => array(
$this->selector( '__action-button' ) => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
),
Expand Down

0 comments on commit 0f8f543

Please sign in to comment.