Skip to content

Commit

Permalink
refactor(multiple): align letter spacing terminology (angular#27543)
Browse files Browse the repository at this point in the history
Renames a couple of tokens that were using "letter spacing" instead of "tracking" in order to align them with the rest of the library.
  • Loading branch information
crisbeto authored Aug 1, 2023
1 parent 2f8c443 commit b00ee77
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/material/core/tokens/m2/mat/_slide-toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $prefix: (mat, slide-toggle);
@return (
label-text-font: typography-utils.font-family($config),
label-text-size: typography-utils.font-size($config, body-2),
label-text-letter-spacing: typography-utils.letter-spacing($config, body-2),
label-text-tracking: typography-utils.letter-spacing($config, body-2),
label-text-line-height: typography-utils.line-height($config, body-2),
label-text-weight: typography-utils.font-weight($config, body-2),
);
Expand Down
2 changes: 1 addition & 1 deletion src/material/core/tokens/m2/mat/_tab-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ $prefix: (mat, tab-header);
label-text-font:
typography-utils.font-family($config, button) or typography-utils.font-family($config),
label-text-size: typography-utils.font-size($config, button),
label-text-letter-spacing: typography-utils.letter-spacing($config, button),
label-text-tracking: typography-utils.letter-spacing($config, button),
label-text-line-height: typography-utils.line-height($config, button),
label-text-weight: typography-utils.font-weight($config, button),
);
Expand Down
2 changes: 1 addition & 1 deletion src/material/slide-toggle/slide-toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
.mat-mdc-slide-toggle .mdc-label {
@include token-utils.create-token-slot(font-family, label-text-font);
@include token-utils.create-token-slot(font-size, label-text-size);
@include token-utils.create-token-slot(letter-spacing, label-text-letter-spacing);
@include token-utils.create-token-slot(letter-spacing, label-text-tracking);
@include token-utils.create-token-slot(line-height, label-text-line-height);
@include token-utils.create-token-slot(font-weight, label-text-weight);
}
Expand Down
2 changes: 1 addition & 1 deletion src/material/tabs/_tabs-common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ $mat-tab-animation-duration: 500ms !default;
) {
@include token-utils.create-token-slot(font-family, label-text-font);
@include token-utils.create-token-slot(font-size, label-text-size);
@include token-utils.create-token-slot(letter-spacing, label-text-letter-spacing);
@include token-utils.create-token-slot(letter-spacing, label-text-tracking);
@include token-utils.create-token-slot(line-height, label-text-line-height);
@include token-utils.create-token-slot(font-weight, label-text-weight);

Expand Down

0 comments on commit b00ee77

Please sign in to comment.