Skip to content

Commit

Permalink
fix: Do not show menu icons on top of other unrelated HA content (#1617)
Browse files Browse the repository at this point in the history
* fix: Do not show menu icons on top of other unrelated HA content

* Change z-indices to work when multiple cards are used

* Formatting
  • Loading branch information
dermotduffy authored Oct 5, 2024
1 parent b5c2f00 commit 632e06b
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/scss/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -188,21 +188,12 @@ web-dialog::part(dialog) {
border-bottom-right-radius: var(--ha-card-border-radius, 4px);
}

/****************
* Overlay styles
****************/
frigate-card-overlay {
// Higher than the drawer (menu renders over drawer).
z-index: 20;
}

/*******************
* Menu hover styles
*******************/

frigate-card-menu {
// z-index is within the overlay stacking context.
z-index: 1;
z-index: 2;
}

frigate-card-menu[data-style*='hover'] {
Expand All @@ -218,6 +209,10 @@ frigate-card-menu[data-style*='hover']:hover,
* Status bar hover styles
*************************/

frigate-card-status-bar {
z-index: 1;
}

frigate-card-status-bar[data-style*='hover'] {
transition: opacity 0.5s ease;
opacity: 0;
Expand Down

0 comments on commit 632e06b

Please sign in to comment.