diff --git a/packages/gatsby-theme-carbon/src/components/GlobalSearch/Menu.js b/packages/gatsby-theme-carbon/src/components/GlobalSearch/Menu.js index abdd7e592..7a39967f9 100644 --- a/packages/gatsby-theme-carbon/src/components/GlobalSearch/Menu.js +++ b/packages/gatsby-theme-carbon/src/components/GlobalSearch/Menu.js @@ -1,3 +1,7 @@ +// Gatsby doesn't include the recommended exceptions to this rule +/* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */ +// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-element-to-interactive-role.md#rule-details + import React, { useEffect, createContext, useContext } from 'react'; import { Link } from 'gatsby'; import cx from 'classnames'; @@ -42,26 +46,24 @@ const Menu = ({ results, onKeyDown }) => { }); return ( - <> - - + ); }; diff --git a/packages/gatsby-theme-carbon/src/components/Tabs/Tabs.js b/packages/gatsby-theme-carbon/src/components/Tabs/Tabs.js index 51b7413bc..c76388fad 100644 --- a/packages/gatsby-theme-carbon/src/components/Tabs/Tabs.js +++ b/packages/gatsby-theme-carbon/src/components/Tabs/Tabs.js @@ -1,3 +1,7 @@ +// Gatsby doesn't include the recommended exceptions to this rule +/* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */ +// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-element-to-interactive-role.md#rule-details + import React, { useContext, createContext,