Skip to content

Commit d4818d8

Browse files
committed
style(snackbar): 💄 Apply elevation directly to the snackbar
The snackbar's elevation was previously applied via an md-elevation element. - Removed the md-elevation wrapper element. - Applied elevation styles directly to the snackbar container. - Ensures consistent shadow rendering.
1 parent 234ef4d commit d4818d8

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

snackbar/internal/_snackbar.scss

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,14 @@
2323
min-width: 344px;
2424
overflow: hidden;
2525
padding: 0;
26+
position: relative; // For elevation
2627

27-
md-elevation {
28-
@include elevation.theme(
29-
(
30-
level: var(--_container-elevation),
31-
shadow-color: var(--_container-shadow-color)
32-
)
33-
);
34-
}
28+
@include elevation.theme(
29+
(
30+
level: var(--_container-elevation),
31+
shadow-color: var(--_container-shadow-color)
32+
)
33+
);
3534

3635
// Style the snackbar icon (slotted)
3736
slot[name="icon"] {

0 commit comments

Comments
 (0)