-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Why do you have to redeclare the whole SASS Map? #23542
Comments
I assume you're referring to the maps added in #23260. The whole point is that you shouldn't have to redeclare the whole map, so if that's what's happening to you, can you share your code and what sass version you're using, and we'll try and figure out what's going on. |
Yeah so basically, for example I'd like orange to be the primary color
You get an error at compilation as the color variable names aren’t already defined. I am using Sass 3.4.23 (Selective Steve). So I guess the question would be how do you add/amend/remove from the $theme-colors sass map? |
The color variable names aren't defined because Sass parses top down. The color variables are defined in the bootstrap import, either copy all the color variables above
|
Demo I provided shows the map merging in action: https://codepen.io/emdeoh/pen/qXxYEO. Could be a Sass version issue? |
Closing since this was resolved in our codebase. |
So you are basically saying just redefine your entire theme-colors stack… That is an unusual way to do it :( |
No, I'm saying we fixed this issue since our beta in our |
Ah, I misunderstood, my apologise, I will try that now ;) Thank you for listening |
Why do you have to redeclare the whole SASS Map when you re-map the variables?
I can't complete a build if I do this partially, I have to redeclare everything to make it work :(
The text was updated successfully, but these errors were encountered: