Skip to content

Commit

Permalink
Fix tabIndex should only be declared on interactive elements #151
Browse files Browse the repository at this point in the history
  • Loading branch information
Haaaan1 committed May 9, 2024
1 parent 7f1833b commit a9b1387
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/views/Lobby.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,8 @@ const Lobby = () => {
onClick={handleRoomClick(Room)}
onKeyDown={(e) => { if (e.key === "Enter") handleRoomClick(Room); }}
tabIndex="0"
role="button"
aria-label="Handle Room Click"
>
<div className="room-players">
{Room.roomPlayersList?.map((user, index) => (
Expand Down

0 comments on commit a9b1387

Please sign in to comment.