Skip to content

Commit daa1b70

Browse files
committed
fix: update role in Avatar
1 parent 72cc219 commit daa1b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/avatar/Avatar.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</script>
1919

2020
{#if !src || !!href || children || dot}
21-
<svelte:element this={href ? "a" : "div"} role={href ? "link" : "img"} {onclick} {href} {target} {...restProps} class={avatarClass}>
21+
<svelte:element this={href ? "a" : "div"} role={href ? undefined : "button"} {onclick} {href} {target} {...restProps} class={avatarClass}>
2222
{#if src}
2323
<img {alt} {src} class={cornerStyle === "circular" ? "rounded-full" : "rounded"} />
2424
{:else if children}

0 commit comments

Comments
 (0)