From b9f150f38f7e571e46a3dae2409bbbada9ec721c Mon Sep 17 00:00:00 2001
From: Sam <sam@sam.wf>
Date: Fri, 7 Apr 2023 17:18:59 +0200
Subject: [PATCH] fix: add aria-label to IconButton

---
 frontend/src/lib/components/IconButton.svelte | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/frontend/src/lib/components/IconButton.svelte b/frontend/src/lib/components/IconButton.svelte
index 16473c5..6a2ae80 100644
--- a/frontend/src/lib/components/IconButton.svelte
+++ b/frontend/src/lib/components/IconButton.svelte
@@ -14,7 +14,16 @@
   let button: HTMLElement;
 </script>
 
-<Tooltip target={button} placement="top">{tooltip}</Tooltip>
-<Button {type} {color} {active} {disabled} {href} on:click={click} bind:inner={button}>
+<Tooltip target={button} aria-hidden placement="top">{tooltip}</Tooltip>
+<Button
+  {type}
+  {color}
+  {active}
+  {disabled}
+  {href}
+  aria-label={tooltip}
+  on:click={click}
+  bind:inner={button}
+>
   <Icon name={icon} />
 </Button>