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
This commit is contained in:
Paul Gschwendtner
2017-06-23 00:28:21 +02:00
committed by Jeremy Elbourn
parent 51bf26eeac
commit 5c9391df74
+1
View File
@@ -206,6 +206,7 @@ textarea.mat-input-element {
position: absolute;
height: $mat-input-underline-height * 2;
top: 0;
left: 0;
width: 100%;
transform-origin: 50%;
transform: scaleX(0.5);