Skip to content

Commit

Permalink
fix: Minimal input width on IE11 (#691)
Browse files Browse the repository at this point in the history
* Use flex-basis instead of min-width on IE11

* Apply flex basis value for all input-group inputs
  • Loading branch information
salarenko committed Mar 9, 2020
1 parent bb4c623 commit d4315e9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/input-group.scss
Expand Up @@ -13,6 +13,7 @@ $fd-input-border-radius: var(--sapField_BorderCornerRadius);

.#{$block} {

$fd-input-width-basis: 10rem;
$fd-input-group-add-on-border: 0.0625rem;
$fd-input-group-button-active-text-color: var(--sapButton_Active_TextColor);
$fd-input-group-button-active-background: var(--sapButton_Active_Background);
Expand Down Expand Up @@ -70,7 +71,7 @@ $fd-input-border-radius: var(--sapField_BorderCornerRadius);

background-color: transparent;
border: none;
flex: 1;
flex: 1 1 $fd-input-width-basis;
padding-right: 0.25rem;
padding-left: 0.25rem;

Expand Down Expand Up @@ -103,11 +104,6 @@ $fd-input-border-radius: var(--sapField_BorderCornerRadius);
padding-right: 0.25rem;
}
}

/** Behaviour only for IE10+ */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
min-width: 160px;
}
}

&--inline {
Expand Down

0 comments on commit d4315e9

Please sign in to comment.