Skip to content
6 changes: 5 additions & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { useEffect } from '@storybook/preview-api';
import Twig from 'twig';
import { setupTwig, fetchCSSFiles } from './utils.js';
import { getRules } from "axe-core";
import { getRules } from 'axe-core';
import { overrideParams } from '../../../../config/emulsify-core/storybook/preview';

// If in a Drupal project, it's recommended to import a symlinked version of drupal.js.
import './_drupal.js';
Expand Down Expand Up @@ -37,6 +38,8 @@ export const decorators = [
setupTwig(Twig);
fetchCSSFiles();

const safeParamOverrides = overrideParams || {};

export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
a11y: {
Expand All @@ -48,4 +51,5 @@ export const parameters = {
rules: AxeRules,
},
},
...safeParamOverrides,
};
Loading