-
-
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
CSS breaks syntax highlighting in Storybook docs #9414
Comments
changing that to true would fix it? scratch that... I tried it via react dev tools and it doesn't work. 😢 |
As an update the code/pre classes in bootstrap 3/4 both are part of this in addition to gentellela. |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Coming to this for the same bug but different cause, our very own CSS is conflicting in the same way. It would be great if these items classes gets generated with a random name so it would never conflicts with other styles just like other Storybook elements. Looks similar to #8758 |
I am also still experiencing this on v7.1.0-alpha.16 |
This also happens with Storybook 7.6.17 for react-webpack5 + Bulma |
Describe the bug
The CSS from the Gentellela (a bootstrap admin template) overides the .tags and pre/code css selectors which breaks the syntax highlighting in storybook docs.
gentellela include in
preview-head.html
Screenshots
If applicable, add screenshots to help explain your problem.
Potential Solution
use hash classes instead of 'tag' 'text' etc...
System:
Please paste the results of
npx -p @storybook/cli@next sb info
here.Thank you for storybook ❤️ , 😄 🐱
The text was updated successfully, but these errors were encountered: