Skip to content

Commit

Permalink
Add missing tabIndex and onKeyDown to TaskMemberItem (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkruotsalainen authored Feb 15, 2024
1 parent 1200eaf commit 2d7f365
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions frontend/src/features/kanban/TaskMemberItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,13 @@ export const TaskMember = ({
return (
<div
role="button"
onClick={handleOnClick}
className="flex flex-row justify-between items-center mb-2"
onClick={handleOnClick}
tabIndex={0}
onKeyDown={(e) => {
if (e.key !== "Enter") return;
handleOnClick();
}}
className="flex flex-row justify-between items-center mb-2 focus:outline-none focus:ring focus:ring-dark-blue-50 rounded"
>
<section className="inline-flex items-center gap-2.5">
<UserIcon id={member.id} name={member.name} />
Expand Down

0 comments on commit 2d7f365

Please sign in to comment.