diff --git a/src/components/PersonCard/index.tsx b/src/components/PersonCard/index.tsx index 592ab445d..ce4469202 100644 --- a/src/components/PersonCard/index.tsx +++ b/src/components/PersonCard/index.tsx @@ -1,5 +1,5 @@ import Link from 'next/link'; -import React from 'react'; +import React, { useState } from 'react'; interface PersonCardProps { personId: number; @@ -16,13 +16,30 @@ const PersonCard: React.FC = ({ profilePath, canExpand = false, }) => { + const [isHovered, setHovered] = useState(false); + return ( - + { + setHovered(true); + }} + onMouseLeave={() => setHovered(false)} + onKeyDown={(e) => { + if (e.key === 'Enter') { + setHovered(true); + } + }} + role="link" + tabIndex={0} + >