Skip to content

Commit c9de8fd

Browse files
committed
fix(input-container): prefix and suffix stretching together with parent
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 #2493. Fixes #1881. Fixes #1421.
1 parent dccbe41 commit c9de8fd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib/input/input-container.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@ md-input-container {
3030
}
3131
}
3232
}
33+
34+
// Prevents the prefix and suffix from stretching together with the container.
35+
.md-input-prefix, .md-input-suffix {
36+
width: 0.1px;
37+
white-space: nowrap;
38+
}

0 commit comments

Comments
 (0)