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 cea66ca
Show file tree
Hide file tree
Showing 2 changed files with 9 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
15 changes: 9 additions & 6 deletions src/lib/input/input-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,15 @@ $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: top center;
transform: scale(0, 0.5);
transition: background-color $swift-ease-out-duration $swift-ease-out-timing-function;

.mat-focused &,
.mat-input-invalid & {
transform: scale(1, 1);
transition: transform $swift-ease-out-duration $swift-ease-out-timing-function,
background-color $swift-ease-out-duration $swift-ease-out-timing-function;
}
}
}
Expand Down

0 comments on commit cea66ca

Please sign in to comment.