Handle events

This commit is contained in:
Adria Navarro 2024-03-07 14:02:54 +01:00
parent 9916b80956
commit 3c03ef2af7
1 changed files with 2 additions and 1 deletions

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} />