Skip to content

Commit eae5e47

Browse files
committed
fix bad stylelint fix
1 parent bccfae7 commit eae5e47

File tree

9 files changed

+26
-27
lines changed

9 files changed

+26
-27
lines changed

src/material/card/_card-theme.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
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
}
@@ -50,7 +50,7 @@
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
}
@@ -69,7 +69,7 @@
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
}

src/material/checkbox/_checkbox-theme.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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
}
@@ -19,7 +19,7 @@
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 {
@@ -58,7 +58,7 @@
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

@@ -79,7 +79,7 @@
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 {

src/material/core/_core-theme.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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);
@@ -42,15 +42,15 @@
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.

src/material/core/option/_optgroup-theme.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
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) {

src/material/core/option/_option-theme.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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));
@@ -23,14 +23,14 @@
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) {

src/material/core/ripple/_ripple-theme.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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

@@ -23,7 +23,6 @@
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
}

src/material/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
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);
@@ -72,7 +72,7 @@
7272
}
7373
}
7474

75-
@mixin typography($config-or-theme) {}
75+
@mixin typography($theme) {}
7676

7777
@mixin _density($theme) {}
7878

src/material/form-field/_form-field-theme.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
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));
@@ -40,7 +40,7 @@
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));
@@ -51,7 +51,7 @@
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

src/material/progress-bar/_progress-bar-theme.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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());
@@ -30,7 +30,7 @@
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

@@ -44,9 +44,9 @@
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);

0 commit comments

Comments
 (0)