feat: migrate visual fixtures to storybook
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import '../src/assets/styles/global.scss';
|
||||
|
||||
export const globalTypes = {
|
||||
theme: {
|
||||
description: 'Global color theme',
|
||||
defaultValue: 'light',
|
||||
toolbar: {
|
||||
icon: 'paintbrush',
|
||||
items: ['light', 'dark'],
|
||||
dynamicTitle: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const decorators = [
|
||||
(story, context) => {
|
||||
document.documentElement.dataset.theme = context.globals.theme;
|
||||
return story();
|
||||
},
|
||||
];
|
||||
|
||||
export const parameters = {
|
||||
controls: { expanded: true },
|
||||
a11y: { test: 'todo' },
|
||||
layout: 'fullscreen',
|
||||
};
|
||||
Reference in New Issue
Block a user