Skip to content

Commit c052ab3

Browse files
authored
refactor(material/core): remove underscores from symbols consumed in other files (#20906)
In the new Sass module system a symbol prefixed with an underscore means that it's private and it can't be used in other files. These changes refactor all of our existing usages to remove the underscore. Some of the symbols have been moved into `private` directories to make it more obvious that they shouldn't be depended upon.
1 parent a0d4ce3 commit c052ab3

File tree

108 files changed

+475
-464
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+475
-464
lines changed

src/dev-app/theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@import '../material/core/color/all-color';
2-
@import '../material/core/density/all-density';
2+
@import '../material/core/density/private';
33
@import '../material/core/focus-indicators/focus-indicators';
44
@import '../material/core/theming/all-theme';
55
@import '../material-experimental/column-resize/column-resize';
@@ -88,7 +88,7 @@ $dark-theme: mat-dark-theme((
8888
$density-scales: (-1, -2, minimum, maximum);
8989
@each $density in$density-scales {
9090
.demo-density-#{$density} {
91-
@include _angular-material-density($density);
91+
@include angular-material-density($density);
9292
@include angular-material-mdc-density($density);
9393
}
9494
}

src/material-experimental/column-resize/_column-resize.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@import '../../material/core/style/variables';
22
@import '../../material/core/style/vendor-prefixes';
3-
@import '../../material/core/theming/check-duplicate-styles';
3+
@import '../../material/core/theming/private';
44
@import '../../material/core/theming/palette';
55
@import '../../material/core/theming/theming';
66

@@ -103,8 +103,8 @@
103103
@mixin mat-column-resize-density($config-or-theme) {}
104104

105105
@mixin mat-column-resize-theme($theme-or-color-config) {
106-
$theme: _mat-legacy-get-theme($theme-or-color-config);
107-
@include _mat-check-duplicate-theme-styles($theme, 'mat-column-resize') {
106+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
107+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-column-resize') {
108108
$color: mat-get-color-config($theme);
109109
$density: mat-get-density-config($theme);
110110
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-autocomplete/_autocomplete-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
@mixin mat-mdc-autocomplete-density($config-or-theme) {}
2727

2828
@mixin mat-mdc-autocomplete-theme($theme-or-color-config) {
29-
$theme: _mat-legacy-get-theme($theme-or-color-config);
30-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-autocomplete') {
29+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
30+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-autocomplete') {
3131
$color: mat-get-color-config($theme);
3232
$density: mat-get-density-config($theme);
3333
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-button/_button-theme.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ $mat-button-state-target: '.mdc-button__ripple';
183183
}
184184

185185
@mixin mat-mdc-button-theme($theme-or-color-config) {
186-
$theme: _mat-legacy-get-theme($theme-or-color-config);
187-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-button') {
186+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
187+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-button') {
188188
$color: mat-get-color-config($theme);
189189
$density: mat-get-density-config($theme);
190190
$typography: mat-get-typography-config($theme);
@@ -261,8 +261,8 @@ $mat-button-state-target: '.mdc-button__ripple';
261261
@mixin mat-mdc-fab-density($config-or-theme) {}
262262

263263
@mixin mat-mdc-fab-theme($theme-or-color-config) {
264-
$theme: _mat-legacy-get-theme($theme-or-color-config);
265-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-fab') {
264+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
265+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-fab') {
266266
$color: mat-get-color-config($theme);
267267
$density: mat-get-density-config($theme);
268268
$typography: mat-get-typography-config($theme);
@@ -339,8 +339,8 @@ $mat-button-state-target: '.mdc-button__ripple';
339339
}
340340

341341
@mixin mat-mdc-icon-button-theme($theme-or-color-config) {
342-
$theme: _mat-legacy-get-theme($theme-or-color-config);
343-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-icon-button') {
342+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
343+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-icon-button') {
344344
$color: mat-get-color-config($theme);
345345
$density: mat-get-density-config($theme);
346346
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-card/_card-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
@mixin mat-mdc-card-density($config-or-theme) {}
5252

5353
@mixin mat-mdc-card-theme($theme-or-color-config) {
54-
$theme: _mat-legacy-get-theme($theme-or-color-config);
55-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-card') {
54+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
55+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-card') {
5656
$color: mat-get-color-config($theme);
5757
$density: mat-get-density-config($theme);
5858
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-checkbox/_checkbox-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898
}
9999

100100
@mixin mat-mdc-checkbox-theme($theme-or-color-config) {
101-
$theme: _mat-legacy-get-theme($theme-or-color-config);
102-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-checkbox') {
101+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
102+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-checkbox') {
103103
$color: mat-get-color-config($theme);
104104
$density: mat-get-density-config($theme);
105105
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-chips/_chips-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171
}
7272

7373
@mixin mat-mdc-chips-theme($theme-or-color-config) {
74-
$theme: _mat-legacy-get-theme($theme-or-color-config);
75-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-chips') {
74+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
75+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-chips') {
7676
$color: mat-get-color-config($theme);
7777
$density: mat-get-density-config($theme);
7878
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-color/_all-color.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@mixin angular-material-mdc-color($config-or-theme) {
44
// In case a theme object has been passed instead of a configuration for
55
// the color system, extract the color config from the theme object.
6-
$config: if(_mat-is-theme-object($config-or-theme),
6+
$config: if(mat-private-is-theme-object($config-or-theme),
77
mat-get-color-config($config-or-theme), $config-or-theme);
88

99
@if $config == null {

src/material-experimental/mdc-core/_core.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
@import '../../material/core/theming/check-duplicate-styles';
1+
@import '../../material/core/theming/private';
22
@import './option/option-theme';
33
@import './option/optgroup-theme';
44

55
// Mixin that renders all of the core styles that depend on the theme.
66
@mixin mat-mdc-core-theme($theme-or-color-config) {
7-
$theme: _mat-legacy-get-theme($theme-or-color-config);
7+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
88
// Wrap the sub-theme includes in the duplicate theme styles mixin. This ensures that
99
// there won't be multiple warnings. e.g. if `mat-mdc-core-theme` reports a warning, then
1010
// the imported themes (such as `mat-ripple-theme`) should not report again.
11-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-core') {
11+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-core') {
1212
@include mat-mdc-option-theme($theme);
1313
@include mat-mdc-optgroup-theme($theme);
1414
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@import '@material/list/variables.import';
33
@import '@material/theme/functions.import';
44
@import '../../mdc-helpers/mdc-helpers';
5-
@import '../../../material/core/theming/check-duplicate-styles';
5+
@import '../../../material/core/theming/private';
66

77
@mixin mat-mdc-optgroup-color($config-or-theme) {
88
$config: mat-get-color-config($config-or-theme);
@@ -27,8 +27,8 @@
2727
}
2828

2929
@mixin mat-mdc-optgroup-theme($theme-or-color-config) {
30-
$theme: _mat-legacy-get-theme($theme-or-color-config);
31-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-optgroup') {
30+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
31+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-optgroup') {
3232
$color: mat-get-color-config($theme);
3333
$density: mat-get-density-config($theme);
3434
$typography: mat-get-typography-config($theme);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@import '@material/list/variables.import';
33
@import '@material/theme/functions.import';
44
@import '../../mdc-helpers/mdc-helpers';
5-
@import '../../../material/core/theming/check-duplicate-styles';
5+
@import '../../../material/core/theming/private';
66

77
@mixin mat-mdc-option-color($config-or-theme) {
88
$config: mat-get-color-config($config-or-theme);
@@ -49,8 +49,8 @@
4949
}
5050

5151
@mixin mat-mdc-option-theme($theme-or-color-config) {
52-
$theme: _mat-legacy-get-theme($theme-or-color-config);
53-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-option') {
52+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
53+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-option') {
5454
$color: mat-get-color-config($theme);
5555
$density: mat-get-density-config($theme);
5656
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-density/_all-density.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@mixin angular-material-mdc-density($config-or-theme) {
44
// In case a theme object has been passed instead of a configuration for
55
// the density system, extract the density config from the theme object.
6-
$config: if(_mat-is-theme-object($config-or-theme),
6+
$config: if(mat-private-is-theme-object($config-or-theme),
77
mat-get-density-config($config-or-theme), $config-or-theme);
88

99
@if $config == null {

src/material-experimental/mdc-dialog/_dialog-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
}
2121

2222
@mixin mat-mdc-dialog-theme($theme-or-color-config) {
23-
$theme: _mat-legacy-get-theme($theme-or-color-config);
24-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-dialog') {
23+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
24+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-dialog') {
2525
$color: mat-get-color-config($theme);
2626
$density: mat-get-density-config($theme);
2727
$typography: mat-get-typography-config($theme);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
}
8080

8181
@mixin mat-mdc-form-field-theme($theme-or-color-config) {
82-
$theme: _mat-legacy-get-theme($theme-or-color-config);
83-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-form-field') {
82+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
83+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-form-field') {
8484
$color: mat-get-color-config($theme);
8585
$density: mat-get-density-config($theme);
8686
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-helpers/_focus-indicators.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@
120120
@include _mat-mdc-strong-focus-indicators-border-color($theme-or-color);
121121
}
122122
@else {
123-
$theme: _mat-legacy-get-theme($theme-or-color);
124-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-strong-focus-indicators') {
123+
$theme: mat-private-legacy-get-theme($theme-or-color);
124+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-strong-focus-indicators') {
125125
$color: mat-get-color-config($theme);
126126
@if $color != null {
127127
@include mat-mdc-strong-focus-indicators-color($color);

src/material-experimental/mdc-helpers/_mdc-helpers.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@import '@material/typography/variables.import';
99
@import '../../material/core/style/layout-common';
1010
@import '../../material/core/theming/theming';
11-
@import '../../material/core/theming/check-duplicate-styles';
11+
@import '../../material/core/theming/private';
1212
@import '../../material/core/typography/typography';
1313

1414
// A set of standard queries to use with MDC's queryable mixins.

src/material-experimental/mdc-input/_input-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
@mixin mat-mdc-input-density($config-or-theme) {}
1414

1515
@mixin mat-mdc-input-theme($theme-or-color-config) {
16-
$theme: _mat-legacy-get-theme($theme-or-color-config);
17-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-input') {
16+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
17+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-input') {
1818
$color: mat-get-color-config($theme);
1919
$density: mat-get-density-config($theme);
2020
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-list/_list-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
}
6161

6262
@mixin mat-mdc-list-theme($theme-or-color-config) {
63-
$theme: _mat-legacy-get-theme($theme-or-color-config);
64-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-list') {
63+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
64+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-list') {
6565
$color: mat-get-color-config($theme);
6666
$density: mat-get-density-config($theme);
6767
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-menu/_menu-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
@mixin mat-mdc-menu-density($config-or-theme) {}
5656

5757
@mixin mat-mdc-menu-theme($theme-or-color-config) {
58-
$theme: _mat-legacy-get-theme($theme-or-color-config);
59-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-menu') {
58+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
59+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-menu') {
6060
$color: mat-get-color-config($theme);
6161
$density: mat-get-density-config($theme);
6262
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-paginator/_paginator-theme.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@import '@material/theme/variables.import';
22
@import '@material/typography/variables.import';
3-
@import '../../material/core/theming/check-duplicate-styles';
3+
@import '../../material/core/theming/private';
44
@import './paginator-variables';
55

66
@mixin mat-mdc-paginator-color($config-or-theme) {
@@ -55,18 +55,18 @@
5555

5656
@mixin mat-mdc-paginator-density($config-or-theme) {
5757
$density-scale: mat-get-density-config($config-or-theme);
58-
$height: _mat-density-prop-value($mat-paginator-density-config, $density-scale, height);
58+
$height: mat-private-density-prop-value($mat-paginator-density-config, $density-scale, height);
5959

60-
@include _mat-density-legacy-compatibility() {
60+
@include mat-private-density-legacy-compatibility() {
6161
.mat-mdc-paginator-container {
6262
min-height: $height;
6363
}
6464
}
6565
}
6666

6767
@mixin mat-mdc-paginator-theme($theme-or-color-config) {
68-
$theme: _mat-legacy-get-theme($theme-or-color-config);
69-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-paginator') {
68+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
69+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-paginator') {
7070
$color: mat-get-color-config($theme);
7171
$density: mat-get-density-config($theme);
7272
$typography: mat-get-typography-config($theme);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
@mixin mat-mdc-progress-bar-density($config-or-theme) {}
3535

3636
@mixin mat-mdc-progress-bar-theme($theme-or-color-config) {
37-
$theme: _mat-legacy-get-theme($theme-or-color-config);
38-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-progress-bar') {
37+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
38+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-progress-bar') {
3939
$color: mat-get-color-config($theme);
4040
$density: mat-get-density-config($theme);
4141
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-progress-spinner/_progress-spinner-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
@mixin mat-mdc-progress-spinner-density($config-or-theme) {}
2828

2929
@mixin mat-mdc-progress-spinner-theme($theme-or-color-config) {
30-
$theme: _mat-legacy-get-theme($theme-or-color-config);
31-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-progress-spinner') {
30+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
31+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-progress-spinner') {
3232
$color: mat-get-color-config($theme);
3333
$density: mat-get-density-config($theme);
3434
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-radio/_radio-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
}
5555

5656
@mixin mat-mdc-radio-theme($theme-or-color-config) {
57-
$theme: _mat-legacy-get-theme($theme-or-color-config);
58-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-radio') {
57+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
58+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-radio') {
5959
$color: mat-get-color-config($theme);
6060
$density: mat-get-density-config($theme);
6161
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-select/_select-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@
9595
@mixin mat-mdc-select-density($config-or-theme) {}
9696

9797
@mixin mat-mdc-select-theme($theme-or-color-config) {
98-
$theme: _mat-legacy-get-theme($theme-or-color-config);
99-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-select') {
98+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
99+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-select') {
100100
$color: mat-get-color-config($theme);
101101
$density: mat-get-density-config($theme);
102102
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-sidenav/_sidenav-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
}
1010

1111
@mixin mat-mdc-sidenav-theme($theme-or-color-config) {
12-
$theme: _mat-legacy-get-theme($theme-or-color-config);
13-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-sidenav') {
12+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
13+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-sidenav') {
1414
$color: mat-get-color-config($theme);
1515
$density: mat-get-density-config($theme);
1616
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-slide-toggle/_slide-toggle-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
}
9595

9696
@mixin mat-mdc-slide-toggle-theme($theme-or-color-config) {
97-
$theme: _mat-legacy-get-theme($theme-or-color-config);
98-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-slide-toggle') {
97+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
98+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-slide-toggle') {
9999
$color: mat-get-color-config($theme);
100100
$density: mat-get-density-config($theme);
101101
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-slider/_slider-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
@mixin mat-mdc-slider-density($config-or-theme) {}
3434

3535
@mixin mat-mdc-slider-theme($theme-or-color-config) {
36-
$theme: _mat-legacy-get-theme($theme-or-color-config);
37-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-slider') {
36+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
37+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-slider') {
3838
$color: mat-get-color-config($theme);
3939
$density: mat-get-density-config($theme);
4040
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-snack-bar/_snack-bar-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
@mixin mat-mdc-snack-bar-density($config-or-theme) {}
4444

4545
@mixin mat-mdc-snack-bar-theme($theme-or-color-config) {
46-
$theme: _mat-legacy-get-theme($theme-or-color-config);
47-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-snack-bar') {
46+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
47+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-snack-bar') {
4848
$color: mat-get-color-config($theme);
4949
$density: mat-get-density-config($theme);
5050
$typography: mat-get-typography-config($theme);

src/material-experimental/mdc-table/_table-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
}
5858

5959
@mixin mat-mdc-table-theme($theme-or-color-config) {
60-
$theme: _mat-legacy-get-theme($theme-or-color-config);
61-
@include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-table') {
60+
$theme: mat-private-legacy-get-theme($theme-or-color-config);
61+
@include mat-private-check-duplicate-theme-styles($theme, 'mat-mdc-table') {
6262
$color: mat-get-color-config($theme);
6363
$density: mat-get-density-config($theme);
6464
$typography: mat-get-typography-config($theme);

0 commit comments

Comments
 (0)