File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 55
55
56
56
.mat-form-field-underline {
57
57
background-color : $underline-color ;
58
+ }
58
59
59
- & .mat-disabled {
60
- @include mat-control-disabled-underline ($underline-color );
61
- }
60
+ .mat-form-field-disabled .mat-form-field-underline {
61
+ @include mat-control-disabled-underline ($underline-color );
62
62
}
63
63
64
64
.mat-form-field-ripple {
Original file line number Diff line number Diff line change 35
35
</ div >
36
36
</ div >
37
37
38
- < div class ="mat-input-underline mat-form-field-underline " #underline
39
- [class.mat-disabled] ="_control.disabled ">
38
+ < div class ="mat-input-underline mat-form-field-underline " #underline >
40
39
< span class ="mat-input-ripple mat-form-field-ripple "
41
40
[class.mat-accent] ="color == 'accent' "
42
41
[class.mat-warn] ="color == 'warn' "> </ span >
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ $mat-form-field-underline-height: 1px !default;
148
148
// Prevents underline from disappearing at lower zoom levels.
149
149
transform : perspective (1px );
150
150
151
- & .mat-disabled {
151
+ .mat-form-field- disabled & {
152
152
background-position : 0 ;
153
153
background-color : transparent ;
154
154
}
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ let nextUniqueId = 0;
75
75
'[class.mat-form-field-invalid]' : '_control.errorState' ,
76
76
'[class.mat-form-field-can-float]' : '_canPlaceholderFloat' ,
77
77
'[class.mat-form-field-should-float]' : '_control.shouldPlaceholderFloat || _shouldAlwaysFloat' ,
78
+ '[class.mat-form-field-disabled]' : '_control.disabled' ,
78
79
'[class.mat-focused]' : '_control.focused' ,
79
80
'[class.mat-primary]' : 'color == "primary"' ,
80
81
'[class.mat-accent]' : 'color == "accent"' ,
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ $mat-select-placeholder-arrow-space: 2 * ($mat-select-arrow-size + $mat-select-a
78
78
}
79
79
80
80
.mat-form-field-type-mat-select {
81
- .mat-form-field-flex {
81
+ & :not ( .mat-form-field-disabled ) .mat-form-field-flex {
82
82
cursor : pointer ;
83
83
}
84
84
You can’t perform that action at this time.
0 commit comments