Skip to content

Commit 5c9391d

Browse files
devversionjelbourn
authored andcommitted
fix(input): underline showing at end if text-align is set (#5280)
Recently the `align` input binding has been removed in favor of the CSS property `text-align`. If a developer sets the `text-align` property to `end` the text will start from the end and also the input underline will show incorrectly start from the end. Setting the absolute positioned underline to `left: 0` ensures that the underline always shows-up correctly (because the `mat-input-underline` is inside of a relative container) Fixes #5272
1 parent 51bf26e commit 5c9391d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/input/input-container.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ textarea.mat-input-element {
206206
position: absolute;
207207
height: $mat-input-underline-height * 2;
208208
top: 0;
209+
left: 0;
209210
width: 100%;
210211
transform-origin: 50%;
211212
transform: scaleX(0.5);

0 commit comments

Comments
 (0)