From e8b5b29d1eb18566126b77fcdc01c5f7f8899e25 Mon Sep 17 00:00:00 2001 From: Elizabeth Mitchell Date: Tue, 19 Sep 2023 17:51:21 -0700 Subject: [PATCH] feat(iconbutton): update tokens to v0.192 BREAKING CHANGE: Replace `container-size` tokens with `container-width` and `container-height`. PiperOrigin-RevId: 566801178 --- catalog/src/components/theme-changer.ts | 3 +- .../iconbutton/theming-filled-tonal.html | 5 ++-- .../figures/iconbutton/theming-filled.html | 5 ++-- .../figures/iconbutton/theming-outlined.html | 5 ++-- docs/components/icon-button.md | 30 +++++++++++-------- iconbutton/internal/_icon-button.scss | 10 ++++--- iconbutton/internal/_shared.scss | 18 +++++------ tokens/_md-comp-filled-icon-button.scss | 5 ++-- tokens/_md-comp-filled-tonal-icon-button.scss | 5 ++-- tokens/_md-comp-icon-button.scss | 5 ++-- tokens/_md-comp-outlined-icon-button.scss | 5 ++-- 11 files changed, 55 insertions(+), 41 deletions(-) diff --git a/catalog/src/components/theme-changer.ts b/catalog/src/components/theme-changer.ts index 3d327b647a..a72dade027 100644 --- a/catalog/src/components/theme-changer.ts +++ b/catalog/src/components/theme-changer.ts @@ -259,7 +259,8 @@ export class ThemeChanger extends LitElement { copy-code-button { --md-icon-button-icon-size: var(--_copy-button-icon-size); - --md-icon-button-state-layer-size: var(--_copy-button-button-size); + --md-icon-button-state-layer-width: var(--_copy-button-button-size); + --md-icon-button-state-layer-height: var(--_copy-button-button-size); /* * Center the copy icon with the h2 text * -(icon button size - intrinsic icon size) / 2 diff --git a/docs/components/figures/iconbutton/theming-filled-tonal.html b/docs/components/figures/iconbutton/theming-filled-tonal.html index c648cfd818..c96f3eaabd 100644 --- a/docs/components/figures/iconbutton/theming-filled-tonal.html +++ b/docs/components/figures/iconbutton/theming-filled-tonal.html @@ -5,7 +5,8 @@ aria-label="Image of a filled tonal icon button with a different theme applied">