-
Notifications
You must be signed in to change notification settings - Fork 137
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
Add @carbon/ibm-products
style import examples in docs
#3497
Comments
Hey I am the having the same problem as well, I am currently on:
I am glad I am not the only one with this problem! |
I was able to resolve this issue by using |
Thanks so much for figuring this out! Couldn't find this information anywhere |
Hey, thanks for reaching out about this. We can review our docs to ensure that this is reflected more clearly. |
@carbon/ibm-products
style import examples in docs
Not sure what was happening here and it is tricky to figure out without example code. It certainly should not be necessary to import Ordinarily i use
If anyone is still suffering from this issue @elycheea then please ask them to modify this CodeSandbox to demonstrate the issue. Otherwise I would close the issue. https://codesandbox.io/p/devbox/carbon-and-ibm-products-import-t4l4wv?file=%2Fsrc%2Findex.scss |
@elycheea okay to close ? |
@ljcarot Yes. Let’s close this. We added a section on including styles in the Developing section of the new website too. 😉 |
Carbon-ibm-products overrides carbon-react styling
What package(s) are you using?
Detailed description
I am working with @carbon/react components and one @carbon/ibm-products component (tearsheet). To get the styling for the tearsheet, I added
@use '@carbon/ibm-products/scss/index';
to my global style file which contains other Carbon styles. Doing this makes my tearsheet look right, but the other components in my app like the elements in my Carbon header bar and my Carbon table now have warped styling:The first screenshot shows the styling of my carbon react components without the import from ibm-products and the second is with.
I tried using
@use '@carbon/ibm-products/scss/index-without-carbon.scss'
as well, but that didn't change anything.Steps to reproduce the issue
@use '@carbon/ibm-products/scss/index-without-carbon.scss'
to the original carbon styling fileAdditional information
The text was updated successfully, but these errors were encountered: