Skip to content

Commit

Permalink
fix(input-container): prefix and suffix stretching together with parent
Browse files Browse the repository at this point in the history
Prevents the input's suffix and prefix from stretching together with their parent node and leaving some weird spacing between themselves and the input. This was a side-effect of using `display: table-cell`.

Fixes angular#2493.
  • Loading branch information
crisbeto committed Jan 2, 2017
1 parent dccbe41 commit 3f1aa20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/input/input-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@ md-input-container {
}
}
}

// Prevents the prefix and suffix from stretching together with the container.
.md-input-prefix, .md-input-suffix {
width: 0.1px;
white-space: nowrap;
}

0 comments on commit 3f1aa20

Please sign in to comment.