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 8383 );
8484 $calculated-size : map .get ($size-map , $density-scale );
8585
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+ );
9290
9391 // Use `mat-mdc-button-base` to increase the specificity over the button's structural styles.
9492 .mat-mdc-icon-button.mat-mdc-button-base {
Original file line number Diff line number Diff line change 1515}
1616
1717@mixin color ($theme , $color-variant : null) {
18- $tokens : m2-progress-bar .get-color-tokens ($theme , primary );
1918 @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 {
2622 .mat-mdc-progress-bar {
23+ $tokens : m2-progress-bar .get-color-tokens ($theme , primary );
24+ @include token-utils .values ($tokens );
25+
2726 & .mat-accent {
2827 $tokens : m2-progress-bar .get-color-tokens ($theme , secondary );
2928 @include token-utils .values ($tokens );
Original file line number Diff line number Diff line change 6767/// Outputs typography theme styles for the mat-slide-toggle.
6868/// @param {Map} $theme The theme to generate typography styles for.
6969@mixin typography ($theme ) {
70- $tokens : m2-slide-toggle .get-typography-tokens ($theme );
7170 @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 ));
7477
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+ }
7684}
7785
7886/// Outputs density theme styles for the mat-slide-toggle.
You can’t perform that action at this time.
0 commit comments