fix: Update components and styles to work with >= HA 2026.2 (#2333)

Caution: Requires HA >= `2026.2`

- Closes #2329
- Closes #2332
This commit is contained in:
Dermot Duffy
2026-02-07 20:32:05 -08:00
committed by GitHub
parent 6eb0a87ca8
commit 49073fee48
17 changed files with 827 additions and 62 deletions
+18 -2
View File
@@ -1,8 +1,24 @@
@use './menu-button.scss';
@import './z-index.scss';
:host {
// Without this the submenu (in the card menu) cannot be interacted with (e.g.
// hover states don't work).
pointer-events: auto;
}
--mdc-menu-z-index: #{$z-index-submenu};
ha-dropdown-item {
color: var(--advanced-camera-card-submenu-color);
background-color: var(--advanced-camera-card-submenu-background-color);
}
ha-dropdown-item:hover {
color: var(--advanced-camera-card-submenu-hover-color);
background-color: var(--advanced-camera-card-submenu-hover-background-color);
}
ha-dropdown-item.selected:not(:hover) {
font-weight: var(--ha-font-weight-medium);
color: var(--advanced-camera-card-submenu-selected-color);
background-color: var(--advanced-camera-card-submenu-selected-background-color);
}