Skip to content

Commit

Permalink
make input underline thick when in error state.
Browse files Browse the repository at this point in the history
also add underline ripple effect from the mocks
  • Loading branch information
mmalerba committed May 12, 2017
1 parent 123d7ec commit 2ad6057
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
4 changes: 0 additions & 4 deletions src/lib/input/_input-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@
color: $input-underline-color-warn;
}

.mat-input-underline {
border-color: $input-underline-color-warn;
}

.mat-input-ripple {
background-color: $input-underline-color-warn;
}
Expand Down
17 changes: 11 additions & 6 deletions src/lib/input/input-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,17 @@ $mat-input-underline-disabled-background-image:
z-index: 1;
top: -1px;
width: 100%;
transform-origin: top;
opacity: 0;
transition: opacity $swift-ease-out-duration $swift-ease-out-timing-function;

.mat-focused & {
opacity: 1;
transform-origin: 50%;
transform: scaleX(0.5);
visibility: hidden;
transition: background-color $swift-ease-in-duration $swift-ease-in-timing-function;

.mat-focused &,
.mat-input-invalid & {
visibility: visible;
transform: scaleX(1);
transition: transform 150ms linear,
background-color $swift-ease-in-duration $swift-ease-in-timing-function;
}
}
}
Expand Down

0 comments on commit 2ad6057

Please sign in to comment.