fix: add keyboard handler and role for a11y compliance
This commit is contained in:
parent
5561d5c177
commit
bdacc7142e
1 changed files with 7 additions and 4 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue