Skip to content

Commit

Permalink
fix(segementedbutton)!: move to label-text-type token
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 510493878
  • Loading branch information
dfreedm authored and copybara-github committed Feb 17, 2023
1 parent 5e39ab7 commit bd125fe
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions segmentedbutton/lib/_shared.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
@use '../../motion/animation';
@use '../../ripple/ripple';
@use '../../sass/color';
@use '../../sass/resolvers';
@use '../../sass/touch-target';
@use '../../sass/typography';
// go/keep-sorted end
Expand Down Expand Up @@ -107,10 +106,7 @@
}

.md3-segmented-button__label-text {
font-family: var(--_label-text-font);
font-size: var(--_label-text-size);
letter-spacing: var(--_label-text-tracking);
font-weight: var(--_label-text-weight);
font: var(--_label-text-type);
}

&.md3-segmented-button--selected:enabled {
Expand Down Expand Up @@ -361,11 +357,7 @@
}

@function resolve-tokens($tokens) {
$tokens: typography.resolve-theme(
$tokens,
map.get(resolvers.$material, 'typography'),
'label-text'
);
$tokens: typography.resolve-tokens($tokens, 'label-text');
$tokens: _flatten-disabled-colors($tokens);
@return $tokens;
}
Expand Down

0 comments on commit bd125fe

Please sign in to comment.