File tree Expand file tree Collapse file tree 3 files changed +22
-17
lines changed Expand file tree Collapse file tree 3 files changed +22
-17
lines changed Original file line number Diff line number Diff line change 83
83
);
84
84
$calculated-size : map .get ($size-map , $density-scale );
85
85
86
- @include sass-utils .current-selector-or-root () {
87
- @include token-utils .values (
88
- m2-icon-button .get-density-tokens (
89
- $theme , $exclude : (icon- button- state- layer- size))
90
- );
91
- }
86
+ @include token-utils .values (
87
+ m2-icon-button .get-density-tokens (
88
+ $theme , $exclude : (icon- button- state- layer- size))
89
+ );
92
90
93
91
// Use `mat-mdc-button-base` to increase the specificity over the button's structural styles.
94
92
.mat-mdc-icon-button.mat-mdc-button-base {
Original file line number Diff line number Diff line change 15
15
}
16
16
17
17
@mixin color ($theme , $color-variant : null) {
18
- $tokens : m2-progress-bar .get-color-tokens ($theme , primary );
19
18
@if inspection .get-theme-version ($theme ) == 1 {
20
- $tokens : map .get (m3-progress-bar .get-tokens ($theme , $color-variant ), color );
21
- }
22
-
23
- @include token-utils .values ($tokens );
24
-
25
- @if inspection .get-theme-version ($theme ) != 1 {
19
+ @include token-utils .values (
20
+ map .get (m3-progress-bar .get-tokens ($theme , $color-variant ), color ));
21
+ } @else {
26
22
.mat-mdc-progress-bar {
23
+ $tokens : m2-progress-bar .get-color-tokens ($theme , primary );
24
+ @include token-utils .values ($tokens );
25
+
27
26
& .mat-accent {
28
27
$tokens : m2-progress-bar .get-color-tokens ($theme , secondary );
29
28
@include token-utils .values ($tokens );
Original file line number Diff line number Diff line change 67
67
/// Outputs typography theme styles for the mat-slide-toggle.
68
68
/// @param {Map} $theme The theme to generate typography styles for.
69
69
@mixin typography ($theme ) {
70
- $tokens : m2-slide-toggle .get-typography-tokens ($theme );
71
70
@if inspection .get-theme-version ($theme ) == 1 {
72
- $tokens : map .get (m3-slide-toggle .get-tokens ($theme ), typography );
73
- }
71
+ @include token-utils .values (
72
+ map .get (m3-slide-toggle .get-tokens ($theme ), typography ));
73
+ } @else {
74
+ @include sass-utils .current-selector-or-root () {
75
+ // TODO: See if this can be removed
76
+ @include token-utils .values (m2-slide-toggle .get-typography-tokens ($theme ));
74
77
75
- @include token-utils .values ($tokens );
78
+ .mat-mdc-slide-toggle {
79
+ @include token-utils .values (
80
+ m2-slide-toggle .get-typography-tokens ($theme ));
81
+ }
82
+ }
83
+ }
76
84
}
77
85
78
86
/// Outputs density theme styles for the mat-slide-toggle.
You can’t perform that action at this time.
0 commit comments