Sass: Use @if and @else to Add Logic To Your Styles?

Sass: Use @if and @else to Add Logic To Your Styles?
0

#1

So I’m trying to figure out why my code won’t pass and I keep getting the “Your mixin should have an @if statement to check if $val is light, and to set the border to 1px solid black.”

Capture%20free%20code%20camp

My “medium @else if” passed but the others won’t and as far as I can see it’s all identical. Any help would be greatly appreciated!


#2

You are missing some semicolons and one of the variables are name $sal instead of $val

Also use the “Ask for help” button, it’s better.