From a8a7fac3855fb9ae7750cebd6d755021c5d622ea Mon Sep 17 00:00:00 2001 From: Sarka Chwastkova Date: Thu, 24 Oct 2024 09:30:52 +0200 Subject: [PATCH] chore: add a11y rules to Storybook --- packages/orbit-components/.storybook/orbitDecorator.tsx | 3 ++- packages/orbit-components/.storybook/preview.ts | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/orbit-components/.storybook/orbitDecorator.tsx b/packages/orbit-components/.storybook/orbitDecorator.tsx index 5ad9607c5c..f92323bb25 100644 --- a/packages/orbit-components/.storybook/orbitDecorator.tsx +++ b/packages/orbit-components/.storybook/orbitDecorator.tsx @@ -51,7 +51,8 @@ const OrbitDecorator: Decorator = (storyFn, context) => { {context.parameters?.info} - {children} + {/* eslint-disable-next-line tailwindcss/no-custom-classname */} +
{children}
diff --git a/packages/orbit-components/.storybook/preview.ts b/packages/orbit-components/.storybook/preview.ts index 7774b04595..b7362c19d7 100644 --- a/packages/orbit-components/.storybook/preview.ts +++ b/packages/orbit-components/.storybook/preview.ts @@ -29,6 +29,9 @@ const preview: Preview = { decorators: [orbitDecorator], parameters: { viewport: { viewports }, + a11y: { + element: ".story-content", + }, }, };