Storybook: Isolate stylesheets between packages #49057
Labels
Developer Experience
Ideas about improving block and theme developer experience
Storybook
Storybook and its stories for components
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
As more packages start to use Storybook (e.g. #49031), we have a higher risk of the main built stylesheet of each package affecting other package stories.
Ideally we would not have unscoped/overscoped CSS in the package stylesheets, but a quick look into some of them do definitely uncover selectors that break package boundaries.
What is your proposed solution?
Add some kind of system to only load package stylesheets that are declared as dependencies of a given story group.
The text was updated successfully, but these errors were encountered: