-
Notifications
You must be signed in to change notification settings - Fork 86
Closed
Labels
bugSomething isn't workingSomething isn't workingspec complianceIssues with compliance to the Sass specIssues with compliance to the Sass spec
Milestone
Description
Given the following code.
.material-design_wrapper {
@at-root {
#{str-replace(unquote("#{selector_append(&)}"), "_wrapper", "")} {
&.gform_confirmation_wrapper {
background-color: red;
width: 200px;
height: 50px;
}
}
}
.gform_confirmation_wrapper {
background-color: red;
width: 200px;
height: 50px;
}
}
This will successfully compile in Dart, but will return an error in scssphp
"$selector: expected more input, invalid selector.:
Current workaround works:
.material-design_wrapper {
$c: #{&}
@at-root {
#{str-replace(unquote("#{selector_append($c)}"), "_wrapper", "")} {
&.gform_confirmation_wrapper {
background-color: red;
width: 200px;
height: 50px;
}
}
}
.gform_confirmation_wrapper {
background-color: red;
width: 200px;
height: 50px;
}
}
Should output:
.material-design.gform_confirmation_wrapper {
background-color: red;
width: 200px;
height: 50px;
}
.material-design_wrapper .gform_confirmation_wrapper {
background-color: red;
width: 200px;
height: 50px;
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingspec complianceIssues with compliance to the Sass specIssues with compliance to the Sass spec