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

fix(input): prevent the floating label from overflowing #8116

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions src/components/input/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,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 @@ -342,17 +341,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 @@ -387,17 +375,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