custom-cards / button-card

❇️ Lovelace button-card for home assistant
MIT License
1.93k stars 233 forks source link

Please consider adding icon_tap_action as a new feature #739

Open ASNNetworks opened 1 year ago

ASNNetworks commented 1 year ago

Is your feature request related to a problem? Please describe. The Tile Card (the core HA card) supports a new feature where you can have a tap_action when pressing the icon. in addition to the card: https://www.home-assistant.io/dashboards/tile/#icon_tap_action This is a very elegant solution and a great way to have have a more-info dialog without needing to hold_action (since that doesn't always work/feel as nice on mobile).

Describe the solution you'd like A clear and concise description of what you want to happen. I have my own custom design and have the icon in the left corner, like many people too. I believe mushroom-card uses this too. It would be a great feature to be able to tap the icon to have a different action, then pressing the card.

Describe alternatives you've considered Alternative is to embed an extra custom:button-card and overlap it. But it's a dirty solution and creates other issues with z-index, needing to solve too.