-
-
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
Stories not applying the ::ng-deep classes from component .scss files #9332
Comments
Hm I never had any issue using Side note, in case you don't know: Is it possible you use ::ng-deep in other places / other *.component.scss with similar rules and these rules overwrite the styles in the wrong order? |
Here is the minimal repo. I am positive that they are not being overriden. If you take a look at the repo, and run the demo-page instead of storybook, the styles are applied correctly. Storybook is just not loading them. I am also using a global stylesheet |
Do you also have an error message when starting storybook? It seems to be related to the mentioned issue above I'll look into that |
I fixed the angular cli error in #9390 but it does not fix the issue with Removing |
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! |
I've got the same issue. Trying to override mat-input styles with ::ng-deep. Works in the app, but not in storybook. Also tried no encapsulation without ::ng-deep. No change. |
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! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
Does anyone have a solution for this? |
Bug or support request summary
When writing stories of an Angular component and having
::ng-deep
classes in the .scss file with some!important
, those styles are not loaded into storybook.Steps to reproduce
To reproduce:
::ng-deep
in the .scss file.::ng-deep
classes are not loaded.Please specify which version of Storybook and optionally any affected addons that you're running
Screenshots
This is how it is supposed to look like and chrome dev tools
Vs how it is loading on storybook
Code Snippets
The typescript file
The scss file
Any help is appreciated! Thank you
The text was updated successfully, but these errors were encountered: