fix(dashboard): make default avatars tabindexable for consistency
This commit is contained in:
parent
42064c66b0
commit
64ad9374af
@ -47,7 +47,7 @@
|
|||||||
{#if item && (item.avatar_url || item.icon)}
|
{#if item && (item.avatar_url || item.icon)}
|
||||||
<img tabindex={0} on:keydown|stopPropagation={(event) => {if (event.key === "Enter") {avatarOpen = true}}} on:click|stopPropagation={toggleAvatarModal} class="rounded-circle avatar" src={icon_url} alt={altText} />
|
<img tabindex={0} on:keydown|stopPropagation={(event) => {if (event.key === "Enter") {avatarOpen = true}}} on:click|stopPropagation={toggleAvatarModal} class="rounded-circle avatar" src={icon_url} alt={altText} />
|
||||||
{:else}
|
{:else}
|
||||||
<img class="rounded-circle avatar" src={default_avatar} alt="icon (default)" />
|
<img class="rounded-circle avatar" src={default_avatar} alt="icon (default)" tabindex={0} />
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<Modal isOpen={avatarOpen} toggle={toggleAvatarModal}>
|
<Modal isOpen={avatarOpen} toggle={toggleAvatarModal}>
|
||||||
|
Loading…
Reference in New Issue
Block a user