We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72cc219 commit daa1b70Copy full SHA for daa1b70
src/lib/avatar/Avatar.svelte
@@ -18,7 +18,7 @@
18
</script>
19
20
{#if !src || !!href || children || dot}
21
- <svelte:element this={href ? "a" : "div"} role={href ? "link" : "img"} {onclick} {href} {target} {...restProps} class={avatarClass}>
+ <svelte:element this={href ? "a" : "div"} role={href ? undefined : "button"} {onclick} {href} {target} {...restProps} class={avatarClass}>
22
{#if src}
23
<img {alt} {src} class={cornerStyle === "circular" ? "rounded-full" : "rounded"} />
24
{:else if children}
0 commit comments