File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 28
28
< span > Primary Toolbar</ span >
29
29
< span class ="demo-fill-remaining "> </ span >
30
30
31
+ < mat-form-field >
32
+ < mat-label > Select</ mat-label >
33
+ < mat-select >
34
+ < mat-option value ="1 "> One</ mat-option >
35
+ < mat-option value ="2 "> Two</ mat-option >
36
+ </ mat-select >
37
+ </ mat-form-field >
38
+
39
+ < mat-form-field appearance ="legacy ">
40
+ < mat-label > Input</ mat-label >
41
+ < input matInput >
42
+ </ mat-form-field >
43
+
31
44
< button mat-raised-button > Text</ button >
32
45
< button mat-raised-button color ="accent "> Accent</ button >
33
46
< button mat-stroked-button > Stroked</ button >
43
56
< span > Accent Toolbar</ span >
44
57
< span class ="demo-fill-remaining "> </ span >
45
58
59
+ < mat-form-field >
60
+ < mat-label > Select</ mat-label >
61
+ < mat-select >
62
+ < mat-option value ="1 "> One</ mat-option >
63
+ < mat-option value ="2 "> Two</ mat-option >
64
+ </ mat-select >
65
+ </ mat-form-field >
66
+
67
+ < mat-form-field appearance ="legacy ">
68
+ < mat-label > Input</ mat-label >
69
+ < input matInput >
70
+ </ mat-form-field >
71
+
46
72
< button mat-button > Text</ button >
47
73
< button mat-flat-button > Flat</ button >
48
74
< button mat-mini-fab color ="">
Original file line number Diff line number Diff line change 8
8
color : mat-color ($palette , default-contrast );
9
9
}
10
10
11
+ @mixin _mat-toolbar-form-field-overrides {
12
+ .mat-form-field-underline ,
13
+ .mat-form-field-ripple ,
14
+ .mat-focused .mat-form-field-ripple {
15
+ background-color : currentColor ;
16
+ }
17
+
18
+ .mat-form-field-label ,
19
+ .mat-focused .mat-form-field-label ,
20
+ .mat-select-value ,
21
+ .mat-select-arrow ,
22
+ .mat-form-field.mat-focused .mat-select-arrow {
23
+ color : inherit ;
24
+ }
25
+
26
+ .mat-input-element {
27
+ caret-color : currentColor ;
28
+ }
29
+ }
30
+
11
31
@mixin mat-toolbar-theme ($theme ) {
12
32
$primary : map-get ($theme , primary );
13
33
$accent : map-get ($theme , accent );
30
50
& .mat-warn {
31
51
@include _mat-toolbar-color ($warn );
32
52
}
53
+
54
+ @include _mat-toolbar-form-field-overrides ;
33
55
}
34
56
}
35
57
You can’t perform that action at this time.
0 commit comments