Skip to content

Commit 64f6d1b

Browse files
crisbetotinayuangao
authored andcommitted
fix(input-container): prefix and suffix stretching together with parent (#2496)
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 e5bd15c commit 64f6d1b

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
@@ -39,3 +39,9 @@ md-input-container {
3939
}
4040
}
4141
}
42+
43+
// Prevents the prefix and suffix from stretching together with the container.
44+
.md-input-prefix, .md-input-suffix {
45+
width: 0.1px;
46+
white-space: nowrap;
47+
}

0 commit comments

Comments
 (0)