| @@ -65,8 +65,28 @@ | ||
| 65 | 65 | 'type' => 'typography', |
| 66 | 66 | 'label' => esc_html__( 'Typography', 'shopbuilder' ), |
| 67 | 67 | 'selector' => self::$selectors['button_typography'], |
| 68 | 68 | ], |
| 69 | + 'submit_button_height' => [ | |
| 70 | + 'mode' => 'responsive', | |
| 71 | + 'label' => esc_html__( 'Submit button height (px)', 'shopbuilder' ), | |
| 72 | + 'type' => 'slider', | |
| 73 | + 'size_units' => [ 'px' ], | |
| 74 | + 'range' => [ | |
| 75 | + 'px' => [ | |
| 76 | + 'min' => 10, | |
| 77 | + 'max' => 300, | |
| 78 | + 'step' => 1, | |
| 79 | + ], | |
| 80 | + ], | |
| 81 | + 'default' => [ | |
| 82 | + 'unit' => 'px', | |
| 83 | + 'size' => 100, | |
| 84 | + ], | |
| 85 | + 'selectors' => [ | |
| 86 | + self::$selectors['submit_button_height'] => 'height: {{SIZE}}{{UNIT}}!important;', | |
| 87 | + ], | |
| 88 | + ], | |
| 69 | 89 | 'submit_button_alignment' => [ |
| 70 | 90 | 'label' => esc_html__( 'Alignment', 'shopbuilder' ), |
| 71 | 91 | 'type' => 'choose', |
| 72 | 92 | 'options' => $alignment, |
| @@ -75,9 +95,8 @@ | ||
| 75 | 95 | self::$selectors['submit_button_alignment']['text-align'] => 'text-align: {{VALUE}} !important;', |
| 76 | 96 | self::$selectors['submit_button_alignment']['float'] => 'float: none;', |
| 77 | 97 | ], |
| 78 | 98 | ], |
| 79 | - | |
| 80 | 99 | 'button_tabs_start' => [ |
| 81 | 100 | 'mode' => 'tabs_start', |
| 82 | 101 | ], |
| 83 | 102 | // Tab For normal view. |
| @@ -173,9 +192,9 @@ | ||
| 173 | 192 | 'selectors' => [ |
| 174 | 193 | self::$selectors['button_margin'] => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', |
| 175 | 194 | ], |
| 176 | 195 | ], |
| 177 | - 'butotn_section_end' => [ | |
| 196 | + 'button_section_end' => [ | |
| 178 | 197 | 'mode' => 'section_end', |
| 179 | 198 | ], |
| 180 | 199 | ]; |
| 181 | 200 | return $fields; |