-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Angular story styles doesn't seem to support inline scss #3534
Comments
When I extract out the nested css into:
It behaves better but the display property is overridden by the existing value. So I had add !important to the style, like:
and then
to make my story work. It would be nice if I could just use the same style code from my component.scss file for storybook |
What version of the |
Hi @igor-dv, I am using storybook 3.4.0. I can't share the code at this point. I was just wondering if inline scss is supported. Do you know if it's supported? Maybe there is something tricky with ::ng-deep? Anyway, I'll report back once I have a public repo set up regarding this. |
It should work because we didn't do anything to make it to not work =) |
@igor-dv step-012-setup-storybook is the branch When you set up everything and run storybook, you will see two stories: one works and one doesn't work. Here is the complete stories.ts:
|
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! |
Wasn't able to check it out yet. Does it still happen? |
@igor-dv I haven't tried the newest version of storybook yet. I have been just using the work-around. |
@igor-dv this still seems to occur as of today. I'm running Angular ^12.2.6 and storybook 6.3.7 |
@igor-dv i have a similar issue where in my angular component we are using inline scss like below. But when story book load the component it does not recognize the scss map functions. |
This is for Angular 5 story.
In my story, I have something like:
While this style works fine in my my-angular-component.scss, it doesn't work in storybook. Does storybook support inline scss?
The text was updated successfully, but these errors were encountered: