Skip to content

fix(input): add more padding so that the hint doesn't overflow the container #2246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 12, 2017
Merged
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
10 changes: 5 additions & 5 deletions src/lib/input/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ $md-input-underline-disabled-background-image:
// Applies a floating placeholder above the input itself.
@mixin md-input-placeholder-floating {
display: block;
padding-bottom: 5px;
transform: translateY(-100%) scale($md-input-floating-placeholder-scale-factor);
transform: translateY(-1.35em) scale($md-input-floating-placeholder-scale-factor);
width: 100% / $md-input-floating-placeholder-scale-factor;
}

Expand All @@ -33,7 +32,9 @@ md-input, md-textarea {
// Global wrapper. We need to apply margin to the element for spacing, but
// cannot apply it to the host element directly.
.md-input-wrapper {
margin: 16px 0;
margin: 1em 0;
// Account for the underline which has 4px of margin + 2px of border.
padding-bottom: 6px;
}

// We use a table layout to baseline align the prefix and suffix classes.
Expand Down Expand Up @@ -122,7 +123,6 @@ md-input, md-textarea {
transform: translateY(0);
transform-origin: bottom left;
transition: transform $swift-ease-out-duration $swift-ease-out-timing-function,
scale $swift-ease-out-duration $swift-ease-out-timing-function,
color $swift-ease-out-duration $swift-ease-out-timing-function,
width $swift-ease-out-duration $swift-ease-out-timing-function;

Expand Down Expand Up @@ -184,7 +184,7 @@ md-input, md-textarea {
display: block;
position: absolute;
font-size: 75%;
bottom: -0.5em;
bottom: 0;

&.md-right {
right: 0;
Expand Down