Storybook: Ignore storybook body when checking scrollable regions a11y (#112423)

ignore storybook body when considering if scrollable regions are focusable
This commit is contained in:
Ashley Harrison
2025-10-15 13:35:55 +01:00
committed by GitHub
parent 77b6271423
commit 7e6d2514ef
3 changed files with 12 additions and 8 deletions
-5
View File
@@ -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
+12 -1
View File
@@ -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,
},
@@ -16,8 +16,6 @@ const meta: Meta<typeof Stack> = {
docs: {
page: mdx,
},
// TODO fix a11y issue in story and remove this
a11y: { test: 'off' },
},
};