Skip to content

Commit

Permalink
fix(input): underline should only be thicker if focused (#6152)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
devversion authored and tinayuangao committed Aug 1, 2017
1 parent a185581 commit 68e2f46
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/input/input-container.scss
Expand Up @@ -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%;
Expand All @@ -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;
Expand Down

0 comments on commit 68e2f46

Please sign in to comment.