lovelace-mushroom icon indicating copy to clipboard operation
lovelace-mushroom copied to clipboard

[Feature]: limit tap target area to the button

Open Stooovie opened this issue 2 years ago • 8 comments

Is your feature request related to a problem?

Right now, the entire element is a tap target. It's usually fine for things like lights as they can be toggled quickly but for more sensitive devices such as media players or TVs, accidental taps are a nuisance.

Current behavior is also inconsistent with the default Home Assistant UI where only the obviously demarcated UI controls are actually active.

Describe the solution you'd like

I propose an option to limit the tap targets to just the obvious button area (the little circle) so the action carries out only when this small area is tapped.

Describe alternatives you've considered

No response

Additional context

No response

Stooovie avatar May 07 '22 06:05 Stooovie

I think the best may to do it is to add buttons in the control space for actions and keep the entire element to more-info menu.

piitaya avatar May 08 '22 09:05 piitaya

Any news on this? I think the new Home app controls on iOS 16 do this well - only the icon is for toggling and the rest of the area is for more info/settings of the respective entity.

Stooovie avatar Jul 11 '22 18:07 Stooovie

Would definitely appreciate this change/setting to change. This is exactly how the Apple Home app works after its latest update and it's a very natural way to use the cards.

The-Croz avatar Oct 11 '22 16:10 The-Croz

The new tile card has implemented it on the last HA release (2022.11) and it even looks like the mushroom light card, but it will still be nice to have the same feature on mushroom cards.

usernein avatar Nov 07 '22 03:11 usernein

Any news on it?

usernein avatar Nov 20 '22 13:11 usernein

any chance to get the icon_tap_action from tile card for mushroom too? @piitaya and - sorry for OT - but the hover effect would be nice to match the stock design ❤️

killtux avatar Jan 26 '24 18:01 killtux

@killtux what feature from Mushroom are you missing using tile card? Adding theses features to Mushroom can change a lot the structure of the card and can be a big breaking change for card_mod users for example.

piitaya avatar Jan 26 '24 19:01 piitaya

this is definitely an issue on the light card, where the tap action is processed also when clicking on the slider to turn the light on and the buttons to change color

Lorentz83 avatar Feb 27 '24 22:02 Lorentz83