diff --git a/chips/lib/_shared.scss b/chips/lib/_shared.scss index 82b26ad436..6fd7c88895 100644 --- a/chips/lib/_shared.scss +++ b/chips/lib/_shared.scss @@ -22,20 +22,14 @@ display: inline-flex; height: var(--_container-height); - @include elevation.theme( - ( - surface-tint: var(--_container-surface-tint-layer-color), - ) - ); - @include ripple.theme( ( - focus-color: var(--_focus-state-layer-color), - focus-opacity: var(--_focus-state-layer-opacity), - hover-color: var(--_hover-state-layer-color), - hover-opacity: var(--_hover-state-layer-opacity), - pressed-color: var(--_pressed-state-layer-color), - pressed-opacity: var(--_pressed-state-layer-opacity), + 'focus-color': var(--_focus-state-layer-color), + 'focus-opacity': var(--_focus-state-layer-opacity), + 'hover-color': var(--_hover-state-layer-color), + 'hover-opacity': var(--_hover-state-layer-opacity), + 'pressed-color': var(--_pressed-state-layer-color), + 'pressed-opacity': var(--_pressed-state-layer-opacity), ) ); } @@ -90,8 +84,8 @@ .elevated { @include elevation.theme( ( - level: var(--_elevated-container-elevation), - shadow-color: var(--_elevated-container-shadow-color), + 'level': var(--_elevated-container-elevation), + 'shadow-color': var(--_elevated-container-shadow-color), ) ); } @@ -103,7 +97,7 @@ .elevated:hover { @include elevation.theme( ( - level: var(--_elevated-hover-container-elevation), + 'level': var(--_elevated-hover-container-elevation), ) ); } @@ -111,7 +105,7 @@ .elevated:focus-within { @include elevation.theme( ( - level: var(--_elevated-focus-container-elevation), + 'level': var(--_elevated-focus-container-elevation), ) ); } @@ -119,7 +113,7 @@ .elevated:active { @include elevation.theme( ( - level: var(--_elevated-pressed-container-elevation), + 'level': var(--_elevated-pressed-container-elevation), ) ); } @@ -127,7 +121,7 @@ .elevated.disabled { @include elevation.theme( ( - level: var(--_elevated-disabled-container-elevation), + 'level': var(--_elevated-disabled-container-elevation), ) ); } @@ -140,7 +134,7 @@ md-focus-ring { @include focus-ring.theme( ( - shape: shape.corners-to-shape-token('--_container-shape'), + 'shape': shape.corners-to-shape-token('--_container-shape'), ) ); } diff --git a/chips/lib/chip.ts b/chips/lib/chip.ts index 1437b615f8..6bd24393be 100644 --- a/chips/lib/chip.ts +++ b/chips/lib/chip.ts @@ -4,7 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import '../../elevation/elevation-surface.js'; +import '../../elevation/elevation.js'; import '../../focus/focus-ring.js'; import '../../ripple/ripple.js'; @@ -49,7 +49,7 @@ export class Chip extends LitElement { @focus=${this.handleFocus} @pointerdown=${this.handlePointerDown} ${ripple(this.getRipple)}> - + ${this.elevated ? html`` : nothing} ${when(this.showRipple, this.renderRipple)} diff --git a/tokens/_md-comp-assist-chip.scss b/tokens/_md-comp-assist-chip.scss index dd81d1194b..40e277cab3 100644 --- a/tokens/_md-comp-assist-chip.scss +++ b/tokens/_md-comp-assist-chip.scss @@ -8,13 +8,12 @@ // go/keep-sorted end // go/keep-sorted start @use '../sass/shape'; +@use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-state'; @use './md-sys-typescale'; -// TODO(b/272526637): tonal surface update -@use './v0_161/md-comp-assist-chip'; -@use './v0_161/md-sys-color'; +@use './v0_172/md-comp-assist-chip'; @use './values'; // go/keep-sorted end @@ -22,7 +21,6 @@ $supported-tokens: ( // go/keep-sorted start 'container-height', 'container-shape', - 'container-surface-tint-layer-color', 'disabled-label-text-color', 'disabled-label-text-opacity', 'disabled-leading-icon-color', diff --git a/tokens/_md-comp-suggestion-chip.scss b/tokens/_md-comp-suggestion-chip.scss index 5e741e48de..2f682891f4 100644 --- a/tokens/_md-comp-suggestion-chip.scss +++ b/tokens/_md-comp-suggestion-chip.scss @@ -8,13 +8,12 @@ // go/keep-sorted end // go/keep-sorted start @use '../sass/shape'; +@use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-state'; @use './md-sys-typescale'; -// TODO(b/272526637): tonal surface update -@use './v0_161/md-comp-suggestion-chip'; -@use './v0_161/md-sys-color'; +@use './v0_172/md-comp-suggestion-chip'; @use './values'; // go/keep-sorted end @@ -22,7 +21,6 @@ $supported-tokens: ( // go/keep-sorted start 'container-height', 'container-shape', - 'container-surface-tint-layer-color', 'disabled-label-text-color', 'disabled-label-text-opacity', 'disabled-leading-icon-color',