fix: Fix z-index rendering issue when card is expanded (#2274)

- Closes #2155
This commit is contained in:
Dermot Duffy
2025-12-09 23:45:07 -08:00
committed by GitHub
parent 252ead62dc
commit 639c5c3e4b
4 changed files with 51 additions and 6 deletions
+6 -2
View File
@@ -36,8 +36,12 @@
// from other cards. Tip: Best way to test this is with multiple Advanced Camera
// Cards, opening a submenu on the 1st (e.g. media players) and verifying the
// menu of the 2nd card is not visible through the opened submenu on the 1st.
:host(:not(:hover)) {
z-index: #{$z-index-card-flatten};
:host(:not(:hover):not([expanded])) {
z-index: auto;
// Create a new stacking context to prevent z-index issues with children
// "breaking out" of the card.
isolation: isolate;
}
advanced-camera-card-loading {
-3
View File
@@ -18,6 +18,3 @@ $z-index-submenu: 5;
$z-index-menu: 4;
$z-index-drawer: 3;
$z-index-status-bar: 2;
// The base z-index when the card is not hovered over. See note in card.scss .
$z-index-card-flatten: 0;