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
Currently, there's 3 base styles setup: ant-design, atomic-design & wordpress
Those styles are being directly imported into the component that needs it. See the blockquote component as an example:
import "@/styles/atomic-design/style.scss";
Doing this causes those styles getting loaded globally in storybook vs. per component view. We need to load the base style conditionally based on the component that's being displayed.
Currently, there's 3 base styles setup: ant-design, atomic-design & wordpress
Those styles are being directly imported into the component that needs it. See the blockquote component as an example:
Doing this causes those styles getting loaded globally in storybook vs. per component view. We need to load the base style conditionally based on the component that's being displayed.
The WordPress Gutenburg has done this & would like to replicate that behavior where Storybook adds a toolbar button & decorators that allow the user to select the base style that should be used. See https://github.com/WordPress/gutenberg/blob/trunk/storybook/preview.js
Tried implementing it, but was running into some issues with paths.
The text was updated successfully, but these errors were encountered: