piitaya / lovelace-mushroom

Build a beautiful Home Assistant dashboard easily
Apache License 2.0
3.62k stars 332 forks source link

[Feature]: limit tap target area to the button #446

Open Stooovie opened 2 years ago

Stooovie commented 2 years ago

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

piitaya commented 2 years ago

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.

Stooovie commented 2 years ago

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.

The-Croz commented 2 years ago

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.

usernein commented 1 year ago

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 commented 1 year ago

Any news on it?

killtux commented 8 months ago

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 ❤️

piitaya commented 8 months ago

@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.

Lorentz83 commented 7 months ago

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