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
Storybook's own styles are overwriting my component styles #16545
Comments
I have the same issue! |
I was able to fix my issue by adding the |
I have the same issue. Versions that I use: v6.3.12 does not have this problem |
@ed-asriyan Do you a have a reproduction repo you can share? Is this in both the docs and canvas tabs? |
You can find the reproduction repo here: https://github.com/ed-asriyan/storybook-bug-sample. In ReadMe you can also find screenshot of the bug.
It is surely reproducing in canvas. I have not yet become familiar with Storybook docs API well enough, so I can not answer about docs. |
Son of a gun!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.4.2 containing PR #16815 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Describe the bug
I have an h2 element with styles:
But because of Storybook's own styling in the DOM, it becomes
And it messes everything up.
To Reproduce
Just have a h2 Element with styles applied, like in the example above.
System
// Please paste the results of
npx sb@next info
here.Additional context
Writing my stories in MDX. This issue appears in the Docs and the Canvas panel.
The text was updated successfully, but these errors were encountered: