3
3
4
4
$mat-date-range-input-separator-spacing : 4px ;
5
5
$mat-date-range-input-part-max-width : calc (50% - #{$mat-date-range-input-separator-spacing } );
6
- $mat-date-range-input-placeholder-transition :
7
- color $swift-ease-out-duration $swift-ease-out-duration / 3 $swift-ease-out-timing-function ;
6
+
7
+ @mixin _mat-date-range-input-placeholder-transition ($property ) {
8
+ transition : #{$property } $swift-ease-out-duration $swift-ease-out-duration / 3
9
+ $swift-ease-out-timing-function ;
10
+ }
8
11
9
12
// Host of the date range input.
10
13
.mat-date-range-input {
@@ -20,15 +23,17 @@ $mat-date-range-input-placeholder-transition:
20
23
21
24
// Text shown between the two inputs.
22
25
.mat-date-range-input-separator {
26
+ @include _mat-date-range-input-placeholder-transition (opacity );
23
27
margin : 0 $mat-date-range-input-separator-spacing ;
24
- transition : $mat-date-range-input-placeholder-transition ;
25
28
}
26
29
27
30
.mat-date-range-input-separator-hidden {
28
31
// Disable text selection, because the user can click
29
32
// through the main label when the input is disabled.
30
33
@include user-select (none );
31
- color : transparent ;
34
+
35
+ // Use opacity to hide the text, because `color: transparent` will be shown in high contrast mode.
36
+ opacity : 0 ;
32
37
transition : none ;
33
38
}
34
39
@@ -54,7 +59,7 @@ $mat-date-range-input-placeholder-transition:
54
59
}
55
60
56
61
@include input-placeholder {
57
- transition : $mat -date-range-input-placeholder-transition ;
62
+ @include _mat -date-range-input-placeholder-transition( color ) ;
58
63
}
59
64
60
65
.mat-form-field-hide-placeholder & ,
0 commit comments