Add on:focus handler to button to fix A11y issue

This commit is contained in:
Andrew Kingston 2022-02-15 09:31:55 +00:00
parent e8c3e13aab
commit 6fc4bbe5df
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@
{disabled} {disabled}
on:click|preventDefault on:click|preventDefault
on:mouseover={() => (showTooltip = true)} on:mouseover={() => (showTooltip = true)}
on:focus={() => (showTooltip = true)}
on:mouseleave={() => (showTooltip = false)} on:mouseleave={() => (showTooltip = false)}
> >
{#if icon} {#if icon}