Chore: ignore a11y rule since there's a button handling keyboard interaction (#62853)

ignore a11y rules since there's a button handling keyboard interaction anyway
This commit is contained in:
Ashley Harrison
2023-02-07 09:25:25 +00:00
committed by GitHub
parent 9d66b18b9c
commit 3a8f2bb726
@@ -54,8 +54,12 @@ export const CollapsableSection = ({
return (
<>
{/* disabling the a11y rules here as the button handles keyboard interactions */}
{/* this is just to provide a better experience for mouse users */}
{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */}
<div onClick={onClick} className={cx(styles.header, className)}>
<button
type="button"
id={`collapse-button-${id}`}
className={styles.button}
onClick={onClick}