Skip to content

Commit

Permalink
Fix pointer-events
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed Jul 8, 2024
1 parent 4db3ab6 commit 692db0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/panels/lovelace/cards/hui-tile-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ export class HuiTileCard extends LitElement implements LovelaceCard {
padding: 0 10px;
min-height: var(--row-height, 56px);
flex: 1;
pointer-events: none;
}
.vertical {
flex-direction: column;
Expand Down Expand Up @@ -550,8 +551,8 @@ export class HuiTileCard extends LitElement implements LovelaceCard {
inset-inline-end: -3px;
inset-inline-start: initial;
}
.icon-container:not([role="button"]) {
pointer-events: none;
.icon-container[role="button"] {
pointer-events: auto;
}
.icon-container[role="button"]:focus-visible,
.icon-container[role="button"]:active {
Expand All @@ -562,7 +563,6 @@ export class HuiTileCard extends LitElement implements LovelaceCard {
min-width: 0;
transition: background-color 180ms ease-in-out;
box-sizing: border-box;
pointer-events: none;
}
hui-card-features {
--feature-color: var(--tile-color);
Expand Down

0 comments on commit 692db0e

Please sign in to comment.