fix: add aria-label to IconButton

This commit is contained in:
Sam 2023-04-07 17:18:59 +02:00
parent 5584d8c601
commit b9f150f38f
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
1 changed files with 11 additions and 2 deletions

View File

@ -14,7 +14,16 @@
let button: HTMLElement; let button: HTMLElement;
</script> </script>
<Tooltip target={button} placement="top">{tooltip}</Tooltip> <Tooltip target={button} aria-hidden placement="top">{tooltip}</Tooltip>
<Button {type} {color} {active} {disabled} {href} on:click={click} bind:inner={button}> <Button
{type}
{color}
{active}
{disabled}
{href}
aria-label={tooltip}
on:click={click}
bind:inner={button}
>
<Icon name={icon} /> <Icon name={icon} />
</Button> </Button>