1
1
@use ' @angular/cdk' ;
2
+ @use ' ../button/m2-icon-button' ;
2
3
@use ' ../button/m2-outlined-button' ;
3
4
@use ' ../button/m2-text-button' ;
4
5
@use ' ../core/style/variables' ;
5
6
@use ' ../core/tokens/token-utils' ;
6
7
@use ' ./m2-toolbar' ;
8
+ @use ' ../core/style/variables' ;
7
9
8
10
$row-padding : 16px !default ;
9
11
@@ -19,7 +21,13 @@ $height-mobile-portrait: 56px !default;
19
21
background : token-utils .slot (container-background-color );
20
22
color : token-utils .slot (container-text-color );
21
23
22
- & , h1 , h2 , h3 , h4 , h5 , h6 {
24
+ & ,
25
+ h1 ,
26
+ h2 ,
27
+ h3 ,
28
+ h4 ,
29
+ h5 ,
30
+ h6 {
23
31
font-family : token-utils .slot (title-text-font );
24
32
font-size : token-utils .slot (title-text-size );
25
33
line-height : token-utils .slot (title-text-line-height );
@@ -55,26 +63,33 @@ $height-mobile-portrait: 56px !default;
55
63
.mat-mdc-button-base.mat-mdc-button-base.mat-unthemed {
56
64
$color-token : null;
57
65
58
- @include token-utils .use-tokens (
59
- $token-prefix , $token-slots ) {
66
+ @include token-utils .use-tokens ($token-prefix , $token-slots ) {
60
67
$color-token : token-utils .slot (container-text-color );
61
68
}
62
69
63
- @include token-utils .use-tokens (
64
- m2-text-button .$prefix , m2-text-button .get-token-slots ()) {
70
+ @include token-utils .use-tokens (m2-text-button .$prefix , m2-text-button .get-token-slots ()) {
65
71
$token : token-utils .get-token-variable-name (label-text-color );
66
72
#{$token } : #{$color-token } ;
67
73
}
68
74
69
75
@include token-utils .use-tokens (
70
- m2-outlined-button .$prefix , m2-outlined-button .get-token-slots ()) {
76
+ m2-outlined-button .$prefix ,
77
+ m2-outlined-button .get-token-slots ()
78
+ ) {
71
79
$token : token-utils .get-token-variable-name (label-text-color );
72
80
#{$token } : #{$color-token } ;
73
81
}
82
+
83
+ @include token-utils .use-tokens (m2-icon-button .$prefix , m2-icon-button .get-token-slots ()) {
84
+ // Update icon button color to match label text color for consistency while overriding.
85
+ $token : token-utils .get-token-variable-name (icon-color );
86
+ #{$token } : #{$color-token } ;
87
+ }
74
88
}
75
89
}
76
90
77
- .mat-toolbar-row , .mat-toolbar-single-row {
91
+ .mat-toolbar-row ,
92
+ .mat-toolbar-single-row {
78
93
display : flex ;
79
94
box-sizing : border-box ;
80
95
0 commit comments