turn on tabindex-no-positive rule (#55830)

pull/55839/head
Ashley Harrison 3 years ago committed by GitHub
parent d17ab82b98
commit afdb094983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .eslintrc
  2. 8
      packages/grafana-ui/src/components/Dropdown/Dropdown.story.tsx

@ -93,7 +93,7 @@
"jsx-a11y/role-has-required-aria-props": "off", "jsx-a11y/role-has-required-aria-props": "off",
"jsx-a11y/role-supports-aria-props": "off", "jsx-a11y/role-supports-aria-props": "off",
"jsx-a11y/scope": "error", "jsx-a11y/scope": "error",
"jsx-a11y/tabindex-no-positive": "off" "jsx-a11y/tabindex-no-positive": "error"
}, },
"overrides": [ "overrides": [
{ {

@ -27,10 +27,10 @@ const meta: ComponentMeta<typeof Dropdown> = {
export function Examples() { export function Examples() {
const menu = ( const menu = (
<Menu> <Menu>
<Menu.Item label="View settings" tabIndex={0} /> <Menu.Item label="View settings" />
<Menu.Item label="Edit actions" tabIndex={1} /> <Menu.Item label="Edit actions" />
<Menu.Item label="Share" tabIndex={2} /> <Menu.Item label="Share" />
<Menu.Item label="Delete" tabIndex={3} /> <Menu.Item label="Delete" />
</Menu> </Menu>
); );

Loading…
Cancel
Save