-
Notifications
You must be signed in to change notification settings - Fork 213
Closed
Description
worked out this test case
@function test-function() {
$str: 'test-function';
@return $str;
}
@mixin test-mixin {
$str: 'test-mixin';
display: $str;
$new-bp: test-function();
display: $str;
}
$str: 'global';
.test{
display: $str;
@include test-mixin;
display: $str;
}scss compiler output
.test {
display: "global";
display: "test-mixin";
display: "test-mixin";
display: "global";
}scssphp output
.test {
display: 'global';
display: 'test-mixin';
display: 'test-function';
display: 'global';
}seems the $str from the function overrides the $str from the mixin
Reactions are currently unavailable