Skip to content

Commit 40d0ab4

Browse files
andrewseguinAndrew Seguin
and
Andrew Seguin
authored
fix(material/snack-bar): rename snackbar token prefix (#30750)
Co-authored-by: Andrew Seguin <andrewseguin@google.com>
1 parent 5909713 commit 40d0ab4

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

material.angular.io/scenes/src/app/scenes/snack-bar/snack-bar-scene.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// within the scene bounds.
33
.mat-mdc-snack-bar-container {
44
margin: 8px !important;
5-
--mat-snackbar-container-color: red;
5+
--mat-snack-bar-container-color: red;
66
color: rgba(white, 0.87) !important;
77

88
button {

src/material/core/tokens/_density.scss

-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ $_density-tokens: (
104104
(mat, slide-toggle): (),
105105
(mat, slider): (),
106106
(mat, snack-bar): (),
107-
(mat, snackbar): (),
108107
(mat, sort): (),
109108
(mat, standard-button-toggle): (
110109
height: (40px, 40px, 40px, 36px, 24px),

src/material/core/tokens/m2/mdc/_snack-bar.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@use '../../../style/sass-utils';
66

77
// The prefix used to generate the fully qualified name for tokens in this file.
8-
$prefix: (mat, snackbar);
8+
$prefix: (mat, snack-bar);
99

1010
// Tokens that can't be configured through Angular Material's current theming API,
1111
// but may be in a future version of the theming API.

src/material/core/tokens/m3/mdc/_snack-bar.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@use 'sass:map';
33

44
// The prefix used to generate the fully qualified name for tokens in this file.
5-
$prefix: (mat, snackbar);
5+
$prefix: (mat, snack-bar);
66

77
/// Generates the tokens for MDC snackbar
88
/// @param {Map} $systems The MDC system tokens

0 commit comments

Comments
 (0)