diff --git a/button/lib/_elevation.scss b/button/lib/_elevation.scss
index 4c9e0629c5..a35597d1e6 100644
--- a/button/lib/_elevation.scss
+++ b/button/lib/_elevation.scss
@@ -11,11 +11,6 @@
// go/keep-sorted end
@mixin styles() {
- md-elevation {
- inset: 0;
- position: absolute;
- }
-
.md3-button {
@include elevation.theme(
(
diff --git a/button/lib/_shared.scss b/button/lib/_shared.scss
index 254bbf2ae0..dfcf7dfef6 100644
--- a/button/lib/_shared.scss
+++ b/button/lib/_shared.scss
@@ -131,6 +131,7 @@
.md3-button::after,
.md3-button::before,
md-elevation,
+ md-elevation-surface,
.md3-button__ripple {
z-index: -1; // Place behind content
}
diff --git a/button/lib/elevated-button.ts b/button/lib/elevated-button.ts
index 49f967f417..9e4804a57b 100644
--- a/button/lib/elevated-button.ts
+++ b/button/lib/elevated-button.ts
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
-import '../../elevation/elevation.js';
+import '../../elevation/elevation-surface.js';
import {html, TemplateResult} from 'lit';
import {ClassInfo} from 'lit/directives/class-map.js';
@@ -23,6 +23,6 @@ export class ElevatedButton extends Button {
}
protected override renderElevation(): TemplateResult {
- return html``;
+ return html``;
}
}
diff --git a/button/lib/filled-button.ts b/button/lib/filled-button.ts
index 22abb1b9aa..58f6e0048d 100644
--- a/button/lib/filled-button.ts
+++ b/button/lib/filled-button.ts
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
-import '../../elevation/elevation.js';
+import '../../elevation/elevation-surface.js';
import {html, TemplateResult} from 'lit';
import {ClassInfo} from 'lit/directives/class-map.js';
@@ -23,6 +23,6 @@ export class FilledButton extends Button {
}
protected override renderElevation(): TemplateResult {
- return html``;
+ return html``;
}
}
diff --git a/button/lib/tonal-button.ts b/button/lib/tonal-button.ts
index 6b836ac823..f7503e5bdd 100644
--- a/button/lib/tonal-button.ts
+++ b/button/lib/tonal-button.ts
@@ -23,6 +23,6 @@ export class TonalButton extends Button {
}
protected override renderElevation(): TemplateResult {
- return html``;
+ return html``;
}
}
diff --git a/chips/lib/_shared.scss b/chips/lib/_shared.scss
index 45dfed565f..82b26ad436 100644
--- a/chips/lib/_shared.scss
+++ b/chips/lib/_shared.scss
@@ -137,11 +137,6 @@
opacity: var(--_elevated-disabled-container-opacity);
}
- md-elevation {
- inset: 0;
- position: absolute;
- }
-
md-focus-ring {
@include focus-ring.theme(
(
diff --git a/chips/lib/chip.ts b/chips/lib/chip.ts
index 8999d9bddd..1437b615f8 100644
--- a/chips/lib/chip.ts
+++ b/chips/lib/chip.ts
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
-import '../../elevation/elevation.js';
+import '../../elevation/elevation-surface.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)}>
-
+
${when(this.showRipple, this.renderRipple)}
diff --git a/dialog/lib/_dialog.scss b/dialog/lib/_dialog.scss
index 271a28d9e6..24692b7213 100644
--- a/dialog/lib/_dialog.scss
+++ b/dialog/lib/_dialog.scss
@@ -115,11 +115,7 @@
padding-block-end: var(--_container-block-padding);
}
- md-elevation {
- position: absolute;
- inset: 0;
- border-radius: inherit;
-
+ md-elevation-surface {
@include elevation.theme(
(
level: var(--_container-elevation),
diff --git a/dialog/lib/dialog.ts b/dialog/lib/dialog.ts
index 5985648998..7acc5f7415 100644
--- a/dialog/lib/dialog.ts
+++ b/dialog/lib/dialog.ts
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
-import '../../elevation/elevation.js';
+import '../../elevation/elevation-surface.js';
import {html, LitElement, PropertyValues} from 'lit';
import {property, query, state} from 'lit/decorators.js';
@@ -275,7 +275,7 @@ export class Dialog extends LitElement {
@pointermove=${this.handlePointerMove}
@pointerup=${this.handleDragEnd}
>
-
+