Skip to content

Commit 9bf4be9

Browse files
authored
fix(multiple): rename token prefixes to match components (#30802)
* fix(multiple): rename token prefixes to match components * fix(material/core): theming tests
1 parent 3a1a0b3 commit 9bf4be9

Some content is hidden

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

43 files changed

+46
-46
lines changed

src/material/button-toggle/_m2-legacy-button-toggle.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@use '../core/style/sass-utils';
44

55
// The prefix used to generate the fully qualified name for tokens in this file.
6-
$prefix: (mat, legacy-button-toggle);
6+
$prefix: (mat, button-toggle-legacy);
77

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

src/material/button-toggle/_m2-standard-button-toggle.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@use '../core/style/sass-utils';
77

88
// The prefix used to generate the fully qualified name for tokens in this file.
9-
$prefix: (mat, standard-button-toggle);
9+
$prefix: (mat, button-toggle);
1010

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

src/material/button-toggle/_m3-standard-button-toggle.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@use '../core/tokens/m3-utils';
44

55
// The prefix used to generate the fully qualified name for tokens in this file.
6-
$prefix: (mat, standard-button-toggle);
6+
$prefix: (mat, button-toggle);
77

88
/// Generates custom tokens for the mat-button-toggle.
99
/// @param {Map} $systems The MDC system tokens

src/material/button/_m2-extended-fab.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@use '../core/theming/inspection';
55

66
// The prefix used to generate the fully qualified name for tokens in this file.
7-
$prefix: (mat, extended-fab);
7+
$prefix: (mat, fab-extended);
88

99
@function get-unthemable-tokens() {
1010
@return (

src/material/button/_m2-filled-button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@use '../core/style/sass-utils';
77

88
// The prefix used to generate the fully qualified name for tokens in this file.
9-
$prefix: (mat, filled-button);
9+
$prefix: (mat, button-filled);
1010

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

src/material/button/_m2-outlined-button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@use 'sass:map';
77

88
// The prefix used to generate the fully qualified name for tokens in this file.
9-
$prefix: (mat, outlined-button);
9+
$prefix: (mat, button-outlined);
1010

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

src/material/button/_m2-protected-button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@use '../core/style/elevation';
88

99
// The prefix used to generate the fully qualified name for tokens in this file.
10-
$prefix: (mat, protected-button);
10+
$prefix: (mat, button-protected);
1111

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

src/material/button/_m2-text-button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@use '../core/style/sass-utils';
77

88
// The prefix used to generate the fully qualified name for tokens in this file.
9-
$prefix: (mat, text-button);
9+
$prefix: (mat, button-text);
1010

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

src/material/button/_m2-tonal-button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@use '../core/style/sass-utils';
66

77
// The prefix used to generate the fully qualified name for tokens in this file.
8-
$prefix: (mat, tonal-button);
8+
$prefix: (mat, button-tonal);
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/button/_m3-extended-fab.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@use '../core/tokens/m3-utils';
44

55
// The prefix used to generate the fully qualified name for tokens in this file.
6-
$prefix: (mat, extended-fab);
6+
$prefix: (mat, fab-extended);
77

88
/// Generates the tokens for MDC extended-fab
99
/// @param {Map} $systems The MDC system tokens

0 commit comments

Comments
 (0)