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

Commit dbb75a6

Browse files
crisbetoThomasBurleson
authored andcommitted
fix(input): prevent the label from overflowing the parent
When an mdInput was focused in IE, the calc was causing the label to overflow it's parent. Closes #7403. Closes #7641
1 parent bebd07c commit dbb75a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/input/input.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ md-input-container {
127127
transform: translate3d(0, $input-label-default-offset + 4, 0) scale($input-label-default-scale);
128128
transition: transform $swift-ease-out-duration $swift-ease-out-timing-function;
129129

130+
// The max-width is necessary, because in some browsers, using this together with
131+
// a calc might cause it to overflow the parent. See #7403
132+
max-width: 100%;
133+
130134
@include rtl(transform-origin, left top, right top);
131135
}
132136
._md-placeholder {

0 commit comments

Comments
 (0)