-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Global CSS bleeds between preloaded stories #30391
Comments
** Disclaimer** This information might be inaccurate, due to it being generated automatically
|
Isn't this just a general problem with unscoped CSS in SPAs? I can see how preloading makes it extra annoying but does it fundamentally change anything? We have a really old issue about CSS not getting reset between stories, and AFAIK the response has just been "that's how SPAs work." If there's a good solution for unloading story specific CSS that would be amazing |
Describe the bug
Storybook’s preloading mechanism currently preloads the first story in a story file when the Storybook instance is initialized. Additionally, hovering over other stories triggers their preloading. However, this functionality has introduced an issue where global CSS (non-modularized styles) from preloaded stories persists and bleeds into the current story, leading to unintended style conflicts.
Reproduction link
Reproduction steps
System
Additional context
No response
The text was updated successfully, but these errors were encountered: