Skip to content

Commit 0c467e7

Browse files
committed
Match the height of select.form-control with input.form-control
Uses a local variable and some calc love to counteract the border-width (times 2) from the height of the select. Fixes #17194 and nullifies #19967.
1 parent ea57c51 commit 0c467e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scss/_forms.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@
6666

6767
select.form-control {
6868
&:not([size]):not([multiple]) {
69-
height: $input-height;
69+
$select-border-width: ($border-width * 2);
70+
height: calc(#{$input-height} - #{$select-border-width});
7071
}
7172

7273
&:focus::-ms-value {

0 commit comments

Comments
 (0)