SASS not respecting LOCALLY scoped css variables #30490
Unanswered
mikematos84
asked this question in
Help
Replies: 1 comment 3 replies
-
Just to clear out the obvious but sometimes easy to overlook things, are you maybe doing something like
instead of
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I have a package using Storybook and have
style-loader
,css-loader
, andsass-loader
all configured using@storybook/addon-styling-webpack
. The weird thing I see is that GLOBALLY scoped CSS variables, are being respected and can be used within SASS, but not LOCALLY scoped ones. I am able to use LOCALLY scoped CSS variables when I use SASS within a NextJS app. So I think it is potentially a misconfiguration on my end rather than a bug. I would appreciate any help anyone can provide.Here is my storybook configuration
And here is a sample of the CSS that works
and the CSS that does not work, but I would like it too
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions