1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13:00

Handle events

This commit is contained in:
Adria Navarro 2024-03-07 14:02:54 +01:00
parent 9916b80956
commit 3c03ef2af7

View file

@ -20,8 +20,9 @@
style="background: {background || `transparent`};"
class:filled={!!background}
on:mouseover={() => (showTooltip = true)}
on:focus={() => (showTooltip = true)}
on:mouseleave={() => (showTooltip = false)}
on:focus={() => (showTooltip = true)}
on:blur={() => (showTooltip = false)}
on:click={() => (showTooltip = false)}
>
<Icon name={icon} color={background ? "white" : color} />