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
Doing so works fine in stories as the CSS is only applied to the Canvas.
In docs however, the CSS is applied to the whole page generating potential conflicts with the args table
e.g. importing a simple style like this in preview.ts
In the Docs of the Button Stories, the "disabled" switch toggle should not be affected by the styles defined in /public/index.css and imported in preview.js
I'm also running into this issue. Thanks for reporting it so concisely @Th3S4mur41.
My issues were slightly different but had the same impact.
I have a global wildcard selector * { .... } that negatively leaked into the Source block. Also, the radio controls in the Control panel disappeared due to my global styles reset.
@shilman, I can use the workaround. Thanks for the direction.
Describe the bug
As documented, it is possible to apply bundled CSS to all the stories by importing it in the preview.ts.
Doing so works fine in stories as the CSS is only applied to the Canvas.
In docs however, the CSS is applied to the whole page generating potential conflicts with the args table
e.g. importing a simple style like this in
preview.ts
Will have the following effect on the docs:
Reproduction link
https://stackblitz.com/edit/github-aofmqe?file=src%2Fstories%2FButton.stories.js
Reproduction steps
System
Additional context
No response
The text was updated successfully, but these errors were encountered: