lion/.storybook/preview.js
Thomas Allmer 4a93599228 chore: update storybook version
Co-authored-by: Joren Broekema <Joren.Broekema@ing.com>
2020-01-13 13:58:03 +01:00

30 lines
557 B
JavaScript
Executable file

import {
addDecorator,
addParameters,
setCustomElements,
withA11y,
} from '@open-wc/demoing-storybook';
async function run() {
// const customElements = await (
// await fetch(new URL('../custom-elements.json', import.meta.url))
// ).json();
setCustomElements({});
addDecorator(withA11y);
addParameters({
a11y: {
config: {},
options: {
checks: { 'color-contrast': { options: { noScroll: true } } },
restoreScroll: true,
},
},
docs: {
iframeHeight: '200px',
},
});
}
run();