fix: add keyboard handler and role for a11y compliance

This commit is contained in:
Ajax Davis 2025-12-11 09:58:20 +10:00
parent 5561d5c177
commit bdacc7142e

View file

@ -323,10 +323,13 @@ export default function ToolSearchPage(): React.ReactElement {
)}
</div>
{/* Install command */}
{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */}
{/* biome-ignore lint/a11y/useKeyWithClickEvents: onClick only prevents propagation */}
<div className="mt-auto" onClick={(e) => e.stopPropagation()}>
{/* Install command - onClick prevents propagation to parent Link */}
<div
className="mt-auto"
onClick={(e) => e.stopPropagation()}
onKeyDown={(e) => e.stopPropagation()}
role="presentation"
>
<CodeBlock
code={`npm install ${tool.package.npmPackageName}`}
language="bash"