Skip to content

Commit 139e892

Browse files
committed
Simplify custom file inner height for generated browse button
1 parent 7c53a8a commit 139e892

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

scss/_custom-forms.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286
bottom: 0;
287287
z-index: 3;
288288
display: block;
289-
height: calc(#{$custom-file-height} - #{$custom-file-border-width} * 2);
289+
height: $custom-file-height-inner;
290290
padding: $custom-file-padding-y $custom-file-padding-x;
291291
line-height: $custom-file-line-height;
292292
color: $custom-file-button-color;

scss/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ $custom-range-thumb-focus-box-shadow: 0 0 0 1px $body-bg, $input-btn-focus-box-s
526526
$custom-range-thumb-active-bg: lighten($component-active-bg, 35%) !default;
527527

528528
$custom-file-height: $input-height !default;
529+
$custom-file-height-inner: $input-height-inner !default;
529530
$custom-file-focus-border-color: $input-focus-border-color !default;
530531
$custom-file-focus-box-shadow: $input-btn-focus-box-shadow !default;
531532

0 commit comments

Comments
 (0)