How to add additional style if the value is passed? Or is there any way to do it?
@mixin link($color, $color-hover:false){
color: $color;
@if $color-hover !== false {
&:hover { color: $color-hover; }
}
}
Is !=
not working for you? I suppose you are trying with !==
. i.e. a Double '=' instead of a single '=' prefixed with '!'. For SCSS, equality operators (==, !=) are supported for all types.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With