mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Disable pointer-events for tile-card .icon-container class that don't have a "button" role (#19497)
Set pointer-events to none for icon containers that don't have button role
This commit is contained in:
parent
e45709fffc
commit
6cd8ee9253
@ -79,6 +79,18 @@ const CONFIGS = [
|
|||||||
color: pink
|
color: pink
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
heading: "Whole tile tap action",
|
||||||
|
config: `
|
||||||
|
- type: tile
|
||||||
|
entity: switch.tv_outlet
|
||||||
|
color: pink
|
||||||
|
tap_action:
|
||||||
|
action: toggle
|
||||||
|
icon_tap_action:
|
||||||
|
action: none
|
||||||
|
`,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
heading: "Unknown entity",
|
heading: "Unknown entity",
|
||||||
config: `
|
config: `
|
||||||
|
@ -525,6 +525,9 @@ export class HuiTileCard extends LitElement implements LovelaceCard {
|
|||||||
top: -3px;
|
top: -3px;
|
||||||
right: -3px;
|
right: -3px;
|
||||||
}
|
}
|
||||||
|
.icon-container:not([role="button"]) {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
.icon-container[role="button"]:focus-visible,
|
.icon-container[role="button"]:focus-visible,
|
||||||
.icon-container[role="button"]:active {
|
.icon-container[role="button"]:active {
|
||||||
transform: scale(1.2);
|
transform: scale(1.2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user