From 78458d549d4a3f945ff1b2b76b5da7782c056125 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 15 Feb 2022 09:31:55 +0000 Subject: [PATCH] Add on:focus handler to button to fix A11y issue --- packages/bbui/src/Button/Button.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/bbui/src/Button/Button.svelte b/packages/bbui/src/Button/Button.svelte index 67930b8030..9d815235fe 100644 --- a/packages/bbui/src/Button/Button.svelte +++ b/packages/bbui/src/Button/Button.svelte @@ -30,6 +30,7 @@ {disabled} on:click|preventDefault on:mouseover={() => (showTooltip = true)} + on:focus={() => (showTooltip = true)} on:mouseleave={() => (showTooltip = false)} > {#if icon}