Skip to content

Commit

Permalink
Remove the aria-label for each user list option in favor of using an …
Browse files Browse the repository at this point in the history
…sr-only class to announce status to sr users.
  • Loading branch information
daiverd committed Feb 11, 2025
1 parent ab205df commit 858e2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/userlist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ const Userlist: React.FC<UserlistProps> = ({ users }) => {
key={player.Object}
role="option"
aria-selected={index === selectedIndex}
aria-label={`${player.Name} (${status})`}
>
{player.Name}
<span className="sr-only">&nbsp;{`(${status})`}</span>
</li>
);
})}
Expand Down

0 comments on commit 858e2a9

Please sign in to comment.