Skip to content

Commit b00ee77

Browse files
authored
refactor(multiple): align letter spacing terminology (#27543)
Renames a couple of tokens that were using "letter spacing" instead of "tracking" in order to align them with the rest of the library.
1 parent 2f8c443 commit b00ee77

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/material/core/tokens/m2/mat/_slide-toggle.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $prefix: (mat, slide-toggle);
2929
@return (
3030
label-text-font: typography-utils.font-family($config),
3131
label-text-size: typography-utils.font-size($config, body-2),
32-
label-text-letter-spacing: typography-utils.letter-spacing($config, body-2),
32+
label-text-tracking: typography-utils.letter-spacing($config, body-2),
3333
label-text-line-height: typography-utils.line-height($config, body-2),
3434
label-text-weight: typography-utils.font-weight($config, body-2),
3535
);

src/material/core/tokens/m2/mat/_tab-header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ $prefix: (mat, tab-header);
4949
label-text-font:
5050
typography-utils.font-family($config, button) or typography-utils.font-family($config),
5151
label-text-size: typography-utils.font-size($config, button),
52-
label-text-letter-spacing: typography-utils.letter-spacing($config, button),
52+
label-text-tracking: typography-utils.letter-spacing($config, button),
5353
label-text-line-height: typography-utils.line-height($config, button),
5454
label-text-weight: typography-utils.font-weight($config, button),
5555
);

src/material/slide-toggle/slide-toggle.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
.mat-mdc-slide-toggle .mdc-label {
5353
@include token-utils.create-token-slot(font-family, label-text-font);
5454
@include token-utils.create-token-slot(font-size, label-text-size);
55-
@include token-utils.create-token-slot(letter-spacing, label-text-letter-spacing);
55+
@include token-utils.create-token-slot(letter-spacing, label-text-tracking);
5656
@include token-utils.create-token-slot(line-height, label-text-line-height);
5757
@include token-utils.create-token-slot(font-weight, label-text-weight);
5858
}

src/material/tabs/_tabs-common.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ $mat-tab-animation-duration: 500ms !default;
6666
) {
6767
@include token-utils.create-token-slot(font-family, label-text-font);
6868
@include token-utils.create-token-slot(font-size, label-text-size);
69-
@include token-utils.create-token-slot(letter-spacing, label-text-letter-spacing);
69+
@include token-utils.create-token-slot(letter-spacing, label-text-tracking);
7070
@include token-utils.create-token-slot(line-height, label-text-line-height);
7171
@include token-utils.create-token-slot(font-weight, label-text-weight);
7272

0 commit comments

Comments
 (0)