Skip to content

Commit 10235b4

Browse files
committed
fix: improve accessibility of the user menu
1 parent ec0efe5 commit 10235b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/components/user-dropdown.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ export function UserDropdown() {
2525
// this is for progressive enhancement
2626
onClick={(e) => e.preventDefault()}
2727
className="flex items-center gap-2"
28+
aria-label="User menu"
2829
>
2930
<Img
3031
className="size-8 rounded-full object-cover"
3132
alt={user.name ?? user.username}
3233
src={getUserImgSrc(user.image?.objectKey)}
3334
width={256}
3435
height={256}
36+
aria-hidden="true"
3537
/>
3638
<span className="text-body-sm font-bold">
3739
{user.name ?? user.username}

0 commit comments

Comments
 (0)