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:
@@ -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
|
||||
|
||||
@@ -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' },
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user