Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit 631ef75

Browse files
committed
#225 - Select width not defaulting to 40%
Signed-off-by: Kevin Provance <kevin.provance@gmail.com>
1 parent 7bf59d5 commit 631ef75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redux-core/inc/fields/select/class-redux-select.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ public function render() {
9393
$multi = ( isset( $this->field['multi'] ) && $this->field['multi'] ) ? ' multiple="multiple"' : '';
9494

9595
if ( ! empty( $this->field['width'] ) ) {
96-
$width = ' style="' . esc_attr( $this->field['width'] ) . '"';
96+
$width = ' style="width:' . esc_attr( $this->field['width'] ) . '"';
9797
} else {
98-
$width = ' style="width: 40%;"';
98+
$width = ' style="width:40%;"';
9999
}
100100

101101
$name_brackets = '';

0 commit comments

Comments
 (0)