You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried Addon-docs with Alpha version 35 today. Everything worked fine, except for my global style which isn't applied in the new Docs panel, but still working in the old Canvas panel.
This is how my .storybook/config.js looks like:
import React, { Fragment } from 'react';
import { load, addParameters, addDecorator } from '@storybook/react';
import { DocsPage } from '@storybook/addon-docs/blocks';
import { Style } from '../src';
// Global Style
addParameters({
docs: DocsPage,
options: {
storySort: (a, b) => a[1].id.localeCompare(b[1].id),
},
});
addDecorator(storyFn => (
<Fragment>
<Style />
{storyFn()}
</Fragment>
));
load(require.context('../src', true, /stories\.js$/), module);
load(require.context('../src', true, /stories\.js$/), module);
Tried Addon-docs with Alpha version 35 today. Everything worked fine, except for my global style which isn't applied in the new Docs panel, but still working in the old Canvas panel.
This is how my .storybook/config.js looks like:
Whereas Style comes from styled-components:
The text was updated successfully, but these errors were encountered: