-
Notifications
You must be signed in to change notification settings - Fork 134
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
Variable outputs ms function, not value #127
Comments
@voltronik It sounds like the plugin is not installed properly and the What method did you use to install modular scale? |
Hi @scottkellum - thanks for getting back to me. I'm referencing the file in my style.scss file like so: I then have a variables.scss file that has It works everywhere else, just not when being reference within a variable. |
Hm, that sounds like a Sass bug then, Sass should be parsing that as a function. edit: I’m chatting with some people to figure out where this issue is. |
Thanks! |
i have experienced the same issue. was the bug figured out? if so, what is the fix? thank you! |
Pretty sure this isn't a bug with modular scale but wanted to ask here to see if you can help.
I have a variable defined like so:
$primary-margin: ms(6);
I use it like this in my Sass files:
margin-bottom: $primary-margin;
When the Sass compiles to CSS however, it looks like this:
margin-bottom: ms(6);
Naturally, it should be outputting a value (px, rem, em, or %) though. I've tried:
margin-bottom: calc($primary-margin);
(calculating first)margin-bottom: #{$primary-margin};
(interpolation)...but nothing seems to work.
Do you know why this might be or what I need to do to get this to work?
Thanks,
Jack
The text was updated successfully, but these errors were encountered: