This repository was archived by the owner on Sep 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,7 @@ md-input-container {
180
180
position : relative ;
181
181
order : 4 ;
182
182
min-height : $input-error-height ;
183
+ overflow : hidden ;
183
184
184
185
.md-char-counter {
185
186
position : absolute ;
@@ -216,24 +217,20 @@ md-input-container {
216
217
217
218
// Since we're delaying the transition, we speed up the duration a little bit to compensate
218
219
transition-duration : $swift-ease-in-duration / 1.5 ;
220
+ opacity : 0 ;
221
+ margin-top : - $input-error-line-height - $error-padding-top ;
222
+ & .ng-enter-active {
223
+ opacity : 1 ;
224
+ margin-top : 0 ;
225
+ }
219
226
}
220
227
& .ng-leave {
221
228
transition : $swift-ease-out ;
222
-
223
- // Speed up the duration (see enter comment above)
224
229
transition-duration : $swift-ease-out-duration / 1.5 ;
225
- }
226
- & .ng-enter ,
227
- & .ng-leave.ng-leave-active {
228
- // Move the error upwards off the screen and fade it out
229
- margin-top : - $input-error-line-height - $error-padding-top ;
230
- opacity : 0 ;
231
- }
232
- & .ng-leave ,
233
- & .ng-enter.ng-enter-active {
234
- // Move the error down into position and fade it in
235
- margin-top : 0 ;
236
- opacity : 1 ;
230
+ & .ng-leave-active {
231
+ margin-top : - $input-error-line-height - $error-padding-top ;
232
+ opacity : 0 ;
233
+ }
237
234
}
238
235
}
239
236
You can’t perform that action at this time.
0 commit comments