mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(input): underline should only be thicker if focused (#6152)
* Currently the underline of the input container is always `2px` thick if the input is invalid. As per specifications the underline should be `1dp/px` if not focused.
This commit is contained in:
committed by
tinayuangao
parent
a1855814d0
commit
68e2f46bf7
@@ -202,7 +202,7 @@ textarea.mat-input-element {
|
||||
|
||||
.mat-input-ripple {
|
||||
position: absolute;
|
||||
height: $mat-input-underline-height * 2;
|
||||
height: $mat-input-underline-height;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
@@ -211,6 +211,10 @@ textarea.mat-input-element {
|
||||
visibility: hidden;
|
||||
transition: background-color $swift-ease-in-duration $swift-ease-in-timing-function;
|
||||
|
||||
.mat-focused & {
|
||||
height: $mat-input-underline-height * 2;
|
||||
}
|
||||
|
||||
.mat-focused &,
|
||||
.mat-input-invalid & {
|
||||
visibility: visible;
|
||||
|
||||
Reference in New Issue
Block a user