File tree Expand file tree Collapse file tree 9 files changed +26
-27
lines changed
selection/pseudo-checkbox Expand file tree Collapse file tree 9 files changed +26
-27
lines changed Original file line number Diff line number Diff line change 2424 }
2525}
2626
27- @mixin color ($config-or- theme ) {
27+ @mixin color ($theme ) {
2828 @if inspection .get-theme-version ($theme ) == 1 {
2929 @include _theme-from-tokens (inspection .get-theme-tokens ($theme , color ));
3030 }
5050 }
5151}
5252
53- @mixin typography ($config-or- theme ) {
53+ @mixin typography ($theme ) {
5454 @if inspection .get-theme-version ($theme ) == 1 {
5555 @include _theme-from-tokens (inspection .get-theme-tokens ($theme , typography ));
5656 }
6969 }
7070}
7171
72- @mixin density ($config-or- theme ) {
72+ @mixin density ($theme ) {
7373 @if inspection .get-theme-version ($theme ) == 1 {
7474 @include _theme-from-tokens (inspection .get-theme-tokens ($theme , density ));
7575 }
Original file line number Diff line number Diff line change 88@use ' ../core/mdc-helpers/mdc-helpers' ;
99@use ' ../core/tokens/m2/mdc/checkbox' as tokens-mdc-checkbox ;
1010
11- @mixin base ($config-or- theme ) {
11+ @mixin base ($theme ) {
1212 @if inspection .get-theme-version ($config-or-theme ) == 1 {
1313 @include _theme-from-tokens (inspection .get-theme-tokens ($config-or-theme , base ));
1414 }
1919 }
2020}
2121
22- @mixin color ($config-or- theme ) {
22+ @mixin color ($theme ) {
2323 $config : theming .get-color-config ($config-or-theme );
2424
2525 @if inspection .get-theme-version ($config-or-theme ) == 1 {
5858 }
5959}
6060
61- @mixin typography ($config-or- theme ) {
61+ @mixin typography ($theme ) {
6262 $config : typography .private-typography-to-2018-config (
6363 theming .get-typography-config ($config-or-theme ));
6464
7979 }
8080}
8181
82- @mixin density ($config-or- theme ) {
82+ @mixin density ($theme ) {
8383 $density-scale : theming .get-density-config ($config-or-theme );
8484
8585 @if inspection .get-theme-version ($config-or-theme ) == 1 {
Original file line number Diff line number Diff line change 88@use ' ./style/elevation' ;
99@use ' ./typography/typography' ;
1010
11- @mixin color ($config-or- theme ) {
11+ @mixin color ($theme ) {
1212 @include ripple-theme .color ($theme );
1313 @include option-theme .color ($theme );
1414 @include optgroup-theme .color ($theme );
4242 }
4343}
4444
45- @mixin typography ($config-or- theme ) {
45+ @mixin typography ($theme ) {
4646 @include option-theme .typography ($theme );
4747 @include optgroup-theme .typography ($theme );
4848 @include pseudo-checkbox-theme .typography ($theme );
4949 // TODO(mmalerba): add typography mixin for this.
5050 // @include ripple-theme.typography($config);
5151}
5252
53- @mixin density ($config-or- theme ) {
53+ @mixin density ($theme ) {
5454 @include option-theme .density ($theme );
5555 @include optgroup-theme .density ($theme );
5656 // TODO(mmalerba): add density mixins for these.
Original file line number Diff line number Diff line change 66@use ' ../theming/inspection' ;
77@use ' ../typography/typography' ;
88
9- @mixin color ($config-or- theme ) {
9+ @mixin color ($theme ) {
1010 @include sass-utils .current-selector-or-root () {
1111 @include token-utils .create-token-values (tokens-mat-optgroup .$prefix ,
1212 tokens-mat-optgroup .get-color-tokens ($theme ));
1313 }
1414}
1515
16- @mixin typography ($config-or- theme ) {
16+ @mixin typography ($theme ) {
1717 @include sass-utils .current-selector-or-root () {
1818 @include token-utils .create-token-values (tokens-mat-optgroup .$prefix ,
1919 tokens-mat-optgroup .get-typography-tokens ($theme ));
2020 }
2121}
2222
23- @mixin density ($config-or- theme ) {
23+ @mixin density ($theme ) {
2424}
2525
2626@mixin theme ($theme-or-color-config ) {
Original file line number Diff line number Diff line change 66@use ' ../theming/inspection' ;
77@use ' ../typography/typography' ;
88
9- @mixin color ($config-or- theme ) {
9+ @mixin color ($theme ) {
1010 @include sass-utils .current-selector-or-root () {
1111 @include token-utils .create-token-values (tokens-mat-option .$prefix ,
1212 tokens-mat-option .get-color-tokens ($theme ));
2323 }
2424}
2525
26- @mixin typography ($config-or- theme ) {
26+ @mixin typography ($theme ) {
2727 @include sass-utils .current-selector-or-root () {
2828 @include token-utils .create-token-values (tokens-mat-option .$prefix ,
2929 tokens-mat-option .get-typography-tokens ($theme ));
3030 }
3131}
3232
33- @mixin density ($config-or- theme ) {
33+ @mixin density ($theme ) {
3434}
3535
3636@mixin theme ($theme-or-color-config ) {
Original file line number Diff line number Diff line change 33@use ' ../theming/inspection' ;
44
55// Colors for the ripple elements.
6- @mixin color ($config-or- theme ) {
6+ @mixin color ($theme ) {
77 $foreground-base : inspection .get-theme-color ($theme , foreground , base );
88 $color-opacity : 0.1 ;
99
2323@mixin theme ($theme-or-color-config ) {
2424 $theme : theming .private-legacy-get-theme ($theme-or-color-config );
2525 @include theming .private-check-duplicate-theme-styles ($theme , ' mat-ripple' ) {
26- $color : theming .get-color-config ($theme );
2726 @if inspection .theme-has ($theme , color ) {
2827 @include color ($theme );
2928 }
Original file line number Diff line number Diff line change 1919 }
2020}
2121
22- @mixin color ($config-or- theme ) {
22+ @mixin color ($theme ) {
2323 $is-dark-theme : inspection .get-theme-type ($theme ) == dark ;
2424 $primary : inspection .get-theme-color ($theme , primary );
2525 $accent : inspection .get-theme-color ($theme , accent );
7272 }
7373}
7474
75- @mixin typography ($config-or- theme ) {}
75+ @mixin typography ($theme ) {}
7676
7777@mixin _density ($theme ) {}
7878
Original file line number Diff line number Diff line change 1111@use ' ../core/tokens/token-utils' ;
1212@use ' ./form-field-density' ;
1313
14- @mixin color ($config-or- theme ) {
14+ @mixin color ($theme ) {
1515 @include sass-utils .current-selector-or-root () {
1616 @include mdc-filled-text-field-theme .theme (
1717 tokens-mdc-filled-text-field .get-color-tokens ($theme ));
4040 }
4141}
4242
43- @mixin typography ($config-or- theme ) {
43+ @mixin typography ($theme ) {
4444 @include sass-utils .current-selector-or-root () {
4545 @include mdc-filled-text-field-theme .theme (
4646 tokens-mdc-filled-text-field .get-typography-tokens ($theme ));
5151 }
5252}
5353
54- @mixin density ($config-or- theme ) {
54+ @mixin density ($theme ) {
5555 @include form-field-density .private-form-field-density ($theme );
5656}
5757
Original file line number Diff line number Diff line change 55@use ' @material/linear-progress/linear-progress-theme' as mdc-linear-progress-theme ;
66@use ' sass:map' ;
77
8- @mixin base ($config-or- theme ) {
8+ @mixin base ($theme ) {
99 // Add default values for tokens not related to color, typography, or density.
1010 @include sass-utils .current-selector-or-root () {
1111 @include mdc-linear-progress-theme .theme (tokens-mdc-linear-progress .get-unthemable-tokens ());
3030 @include mdc-linear-progress-theme .theme ($color-tokens );
3131}
3232
33- @mixin color ($config-or- theme ) {
33+ @mixin color ($theme ) {
3434 .mat-mdc-progress-bar {
3535 @include _palette-styles ($theme , primary);
3636
4444 }
4545}
4646
47- @mixin typography ($config-or- theme ) {}
47+ @mixin typography ($theme ) {}
4848
49- @mixin density ($config-or- theme ) {}
49+ @mixin density ($theme ) {}
5050
5151@mixin theme ($theme-or-color-config ) {
5252 $theme : theming .private-legacy-get-theme ($theme-or-color-config );
You can’t perform that action at this time.
0 commit comments