-
Notifications
You must be signed in to change notification settings - Fork 196
Closed
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionality
Milestone
Description
VSCode underlines error at !important syntax when it's argument of method if:
@function get-mixin-important-var($important) {
@return if($important, !important, null);
// ~~~ Error: expression expected
}
@mixin heading($important: false) {
$i: get-mixin-important-var($important);
font-family: "arial" $i;
}
.heading {
@include heading(true);
}However this snippet is valid when pasted to SASS Online Editor (https://www.sassmeister.com/) with option
- Sass compiler: v3.3.14
- Syntax: SCSS
And it's compiled to valid CSS:
.heading {
font-family: "arial" !important;
}Metadata
Metadata
Assignees
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionality