Accessibility: Enable rule jsx-a11y/no-noninteractive-element-interactions (#58077)

* fixes for no-noninteractive-element-interactions

* remaining fixes

* add type="button"

* fix unit tests
This commit is contained in:
Ashley Harrison
2022-11-03 10:55:58 +00:00
committed by GitHub
parent 65bd5c65d8
commit 514d3111f4
16 changed files with 79 additions and 65 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ export function Breadcrumb({ pathName, onPathChange, rootIcon }: Props) {
return (
<ul className={styles.breadCrumb}>
{rootIcon && (
<li onClick={() => onPathChange('')}>
<Icon name={rootIcon} />
<li>
<Icon name={rootIcon} onClick={() => onPathChange('')} />
</li>
)}
{paths.map((path, index) => {