text: import { configure, addParameters, addDecorator } from '@storybook/html';
  import { withA11y } from '@storybook/addon-a11y';
  
  addDecorator(withA11y);
  
  addParameters({
    a11y: {
      config: {},
      options: {
        checks: { 'color-contrast': { options: { noScroll: true } } },
        restoreScroll: true,
      },
    },
    html: {
      preventForcedRender: false, // default
    },
    options: {
      hierarchyRootSeparator: /\|/,
    },
  });
  
  // automatically import all files ending in *.stories.js
  const req = require.context('../stories', true, /\.stories\.js$/);
  function loadStories() {
    // Make welcome story default
    require('../stories/index.stories');
    req.keys().forEach(filename => req(filename));
  }
  
  configure(loadStories, module);
  