diff --git a/eslint-suppressions.json b/eslint-suppressions.json index 2ceaa530a83..0fecfa471ed 100644 --- a/eslint-suppressions.json +++ b/eslint-suppressions.json @@ -785,11 +785,6 @@ "count": 2 } }, - "packages/grafana-ui/src/components/Layout/Stack/Stack.story.tsx": { - "no-restricted-syntax": { - "count": 1 - } - }, "packages/grafana-ui/src/components/List/AbstractList.tsx": { "react-prefer-function-component/react-prefer-function-component": { "count": 1 diff --git a/packages/grafana-ui/.storybook/preview.ts b/packages/grafana-ui/.storybook/preview.ts index 124981e1434..e245a46646a 100644 --- a/packages/grafana-ui/.storybook/preview.ts +++ b/packages/grafana-ui/.storybook/preview.ts @@ -64,7 +64,18 @@ const preview: Preview = { docs: { container: ThemedDocsContainer, }, - a11y: { test: 'error' }, + a11y: { + test: 'error', + config: { + rules: [ + { + id: 'scrollable-region-focusable', + selector: 'body', + enabled: false, + }, + ], + }, + }, knobs: { disable: true, }, diff --git a/packages/grafana-ui/src/components/Layout/Stack/Stack.story.tsx b/packages/grafana-ui/src/components/Layout/Stack/Stack.story.tsx index 14e4e3b5124..5acad6ab10f 100644 --- a/packages/grafana-ui/src/components/Layout/Stack/Stack.story.tsx +++ b/packages/grafana-ui/src/components/Layout/Stack/Stack.story.tsx @@ -16,8 +16,6 @@ const meta: Meta = { docs: { page: mdx, }, - // TODO fix a11y issue in story and remove this - a11y: { test: 'off' }, }, };