Hi, thanks for the library. We're happened to use reach-ui dialogs in our components and noticed that they are affected by styles from ladle.css. We tried using { iframed: true } expecting that the iframe is not gonna include ladle.css, but it did, so it did not help.
Reproduction
Here's a stackblitz reproduction. It has two stories: iframed dialog and a regular one. Both are rendered bottom left instead of being centered.
Note, that iframed dialog does include ladle.css, but it fails to load on stackblitz. To reproduce on stackblitz you need to open iframed story in the fullscreen mode. Locally ladle.css loads fine and affects iframed components.
Environment
OS: any
Browser any
Version 4.0.0
Potential fixes
One idea is to not include ladle.css inside iframed stories.
Another is to fix styles to only include ladle's dialogs. Here's an example patch we used to temporary fix the problem:
Describe the bug
Hi, thanks for the library. We're happened to use reach-ui dialogs in our components and noticed that they are affected by styles from
ladle.css
. We tried using{ iframed: true }
expecting that the iframe is not gonna includeladle.css
, but it did, so it did not help.Reproduction
Here's a stackblitz reproduction. It has two stories: iframed dialog and a regular one. Both are rendered bottom left instead of being centered.
Note, that iframed dialog does include
ladle.css
, but it fails to load on stackblitz. To reproduce on stackblitz you need to open iframed story in the fullscreen mode. Locallyladle.css
loads fine and affects iframed components.Environment
Potential fixes
ladle.css
inside iframed stories.