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