File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 2
2
@use ' @material/density/functions' as mdc-density-functions ;
3
3
@use ' @material/icon-button/icon-button-theme' as mdc-icon-button-theme ;
4
4
@use ' @material/theme/theme-color' as mdc-theme-color ;
5
+ @use ' ../core/style/sass-utils' ;
5
6
@use ' ../core/tokens/m2/mdc/icon-button' as tokens-mdc-icon-button ;
6
7
7
8
@use ' ./button-theme-private' ;
@@ -24,7 +25,10 @@ $_icon-size: 24px;
24
25
}
25
26
26
27
@mixin base ($theme ) {
27
- // TODO(mmalerba): Move icon button base tokens here
28
+ // Add default values for tokens not related to color, typography, or density.
29
+ @include sass-utils .current-selector-or-root () {
30
+ @include mdc-icon-button-theme .theme (tokens-mdc-icon-button .get-unthemable-tokens ());
31
+ }
28
32
}
29
33
30
34
@mixin color ($theme ) {
Original file line number Diff line number Diff line change 17
17
.mat-mdc-icon-button {
18
18
// Add the official slots for the MDC component.
19
19
@include mdc-icon-button-theme .theme-styles ($token-slots );
20
-
21
- // Add default values for tokens that aren't outputted by the theming API.
22
- @include mdc-icon-button-theme .theme (m2-mdc-icon-button .get-unthemable-tokens ());
23
20
}
24
21
}
25
22
You can’t perform that action at this time.
0 commit comments