Skip to content

Commit

Permalink
feat: add interaction with avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
21CSM committed Oct 6, 2024
1 parent a33ee88 commit 7fb8c7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/components/shell/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@
aria-expanded={isDropdownOpen}
>
<span class="text-sm font-medium">{userName}</span>
<Avatar width="w-10" src={userAvatar ?? ''} background="bg-surface-500">
<Avatar border="border-4 border-surface-300-600-token hover:!border-primary-500"
cursor="cursor-pointer" width="w-10" src={userAvatar ?? ''} background="bg-surface-500">
<IconAccount class="w-6 h-6" />
</Avatar>
</button>
Expand All @@ -123,7 +124,8 @@
{#if userName}
<div class="relative" use:clickOutside on:clickOutside={() => isDropdownOpen = false}>
<button on:click={toggleDropdown} class="dropdown-toggle" aria-haspopup="true" aria-expanded={isDropdownOpen}>
<Avatar width="w-8" src={userAvatar ?? ''} background="bg-surface-500">
<Avatar border="border-4 border-surface-300-600-token hover:!border-primary-500"
cursor="cursor-pointer" width="w-10" src={userAvatar ?? ''} background="bg-surface-500">
<IconAccount class="w-5 h-5" />
</Avatar>
</button>
Expand Down

0 comments on commit 7fb8c7c

Please sign in to comment.