Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(input): prevent the floating label from overflowing
Browse files Browse the repository at this point in the history
The calc that was used to truncate the long input labels was actually making them longer on IE.
This is because IE calculates whether to overflow an element before applying any of the transforms.

Closes #7403.

Closes #8116
  • Loading branch information
crisbeto authored and ThomasBurleson committed Jun 3, 2016
1 parent ce0ebbf commit 437f764
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/components/input/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ md-input-container {
transform: translate3d(0, $input-label-float-offset, 0) scale($input-label-float-scale);
transition: transform $swift-ease-out-timing-function $swift-ease-out-duration,
width $swift-ease-out-timing-function $swift-ease-out-duration;
width: calc((100% - #{$input-label-float-width}) / #{$input-label-float-scale});
}
}

Expand Down Expand Up @@ -351,17 +350,6 @@ md-input-container {
width: calc(100% - #{$icon-offset} - #{$input-label-float-width});
}
}

&.md-input-focused,
&.md-input-has-placeholder,
&.md-input-has-value {
> label {
&:not(.md-no-float):not(._md-container-ignore),
.md-placeholder {
width: calc((100% - #{$icon-offset} - #{$input-label-float-width}) / #{$input-label-float-scale});
}
}
}
}

// icon offset should have higher priority as normal label
Expand Down Expand Up @@ -396,17 +384,6 @@ md-input-container {
width: calc(100% - (#{$icon-offset} * 2));
}
}

&.md-input-focused,
&.md-input-has-placeholder,
&.md-input-has-value {
> label {
&:not(.md-no-float):not(._md-container-ignore),
.md-placeholder {
width: calc((100% - (#{$icon-offset} * 2)) / #{$input-label-float-scale});
}
}
}
}
}

Expand Down

0 comments on commit 437f764

Please sign in to comment.