Skip to content

Commit 2ad6057

Browse files
committed
make input underline thick when in error state.
also add underline ripple effect from the mocks
1 parent 123d7ec commit 2ad6057

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/lib/input/_input-theme.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@
7474
color: $input-underline-color-warn;
7575
}
7676

77-
.mat-input-underline {
78-
border-color: $input-underline-color-warn;
79-
}
80-
8177
.mat-input-ripple {
8278
background-color: $input-underline-color-warn;
8379
}

src/lib/input/input-container.scss

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,17 @@ $mat-input-underline-disabled-background-image:
217217
z-index: 1;
218218
top: -1px;
219219
width: 100%;
220-
transform-origin: top;
221-
opacity: 0;
222-
transition: opacity $swift-ease-out-duration $swift-ease-out-timing-function;
223-
224-
.mat-focused & {
225-
opacity: 1;
220+
transform-origin: 50%;
221+
transform: scaleX(0.5);
222+
visibility: hidden;
223+
transition: background-color $swift-ease-in-duration $swift-ease-in-timing-function;
224+
225+
.mat-focused &,
226+
.mat-input-invalid & {
227+
visibility: visible;
228+
transform: scaleX(1);
229+
transition: transform 150ms linear,
230+
background-color $swift-ease-in-duration $swift-ease-in-timing-function;
226231
}
227232
}
228233
}

0 commit comments

Comments
 (0)