Skip to content

Commit

Permalink
fix(material/chips): missing tokens in M3
Browse files Browse the repository at this point in the history
Fixes that the chips weren't generating the `with-avatar-avatar-shape-radius` and `elevated-container-color` tokens in M3.
  • Loading branch information
crisbeto committed Aug 1, 2024
1 parent 799766e commit 6bc3471
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/material/core/tokens/m3/mdc/_chip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ $prefix: (mdc, chip);
(
container-shape-radius: token-definition.hardcode(8px, $exclude-hardcoded),
with-avatar-avatar-size: token-definition.hardcode(24px, $exclude-hardcoded),
with-avatar-avatar-shape-radius: token-definition.hardcode(24px, $exclude-hardcoded),
label-text-color: map.get($systems, md-sys-color, on-surface-variant),
disabled-label-text-color: sass-utils.safe-color-change(
map.get($systems, md-sys-color, on-surface),
Expand All @@ -43,6 +44,7 @@ $prefix: (mdc, chip);
with-avatar-disabled-avatar-opacity:
token-definition.hardcode(0.38, $exclude-hardcoded),
elevated-selected-container-color: map.get($systems, md-sys-color, secondary-container),
elevated-container-color: map.get($systems, md-sys-color, surface),
flat-selected-outline-width: token-definition.hardcode(0, $exclude-hardcoded),
selected-label-text-color: map.get($systems, md-sys-color, on-secondary-container),
flat-disabled-selected-container-color: sass-utils.safe-color-change(
Expand Down

0 comments on commit 6bc3471

Please sign in to comment.