Skip to content

Commit

Permalink
🐛 Fix Input align broken in IE11
Browse files Browse the repository at this point in the history
close ant-design#18347
close ant-design#18313
close ant-design#17753

The fix of ant-design#17759 did not resolve IE11
  • Loading branch information
afc163 authored and lewis617 committed Aug 22, 2019
1 parent f9f6e8d commit 7aeca60
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions components/input/style/mixin.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,26 @@
padding: @input-padding-vertical-lg @input-padding-horizontal-lg;
font-size: @font-size-lg;
line-height: @input-height-lg;
line-height: ~'@{line-height-base} \9'; // https://github.com/ant-design/ant-design/issues/17753
// https://github.com/ant-design/ant-design/issues/17753
line-height: ~'@{line-height-base} \9';
// stylelint-disable-next-line
_:-ms-input-placeholder,
:root & {
line-height: @line-height-base;
}
}

.input-sm() {
height: @input-height-sm;
padding: @input-padding-vertical-sm @input-padding-horizontal-sm;
line-height: @input-height-sm;
line-height: ~'@{line-height-base} \9'; // https://github.com/ant-design/ant-design/issues/17753
// https://github.com/ant-design/ant-design/issues/17753
line-height: ~'@{line-height-base} \9';
// stylelint-disable-next-line
_:-ms-input-placeholder,
:root & {
line-height: @line-height-base;
}
}

// input status
Expand Down Expand Up @@ -56,7 +68,13 @@
color: @input-color;
font-size: @font-size-base;
line-height: @input-height-base;
line-height: ~'@{line-height-base} \9'; // https://github.com/ant-design/ant-design/issues/17753
// https://github.com/ant-design/ant-design/issues/17753
line-height: ~'@{line-height-base} \9';
// stylelint-disable-next-line
_:-ms-input-placeholder,
:root & {
line-height: @line-height-base;
}
background-color: @input-bg;
background-image: none;
border: @border-width-base @border-style-base @input-border-color;
Expand Down

0 comments on commit 7aeca60

Please sign in to comment.