From 6bc3471b7a39e8618d3eb6e482984b21777c02c1 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Thu, 1 Aug 2024 09:01:37 +0200 Subject: [PATCH] fix(material/chips): missing tokens in M3 Fixes that the chips weren't generating the `with-avatar-avatar-shape-radius` and `elevated-container-color` tokens in M3. --- src/material/core/tokens/m3/mdc/_chip.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/material/core/tokens/m3/mdc/_chip.scss b/src/material/core/tokens/m3/mdc/_chip.scss index c8c97136b743..c8dbe16e3cf1 100644 --- a/src/material/core/tokens/m3/mdc/_chip.scss +++ b/src/material/core/tokens/m3/mdc/_chip.scss @@ -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), @@ -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(