Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Setting selector name dynamically in SASS
@mixin active($selector) {
#{$selector} {
color:black;
}
}
#my-id {
@include active($selector: ".my-class")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.