I am not sure if I am doing this right. I am wanting to do if statements within the when, but they don't seem to be working, here is an example:
The issue I have is the nested conditions, the main when condition works fine
@han_cart_icon: 'fa-shopping-cart';
@han_fa_version: 'v5';
.change_basket_icon() when (@han_cart_icon = fa-shopping-cart) {
if (@han_fa_version == 'v4'){
i.ty-icon-moon-commerce,
.ty-icon-basket {
font-family: FontAwesome;
&:before {
content: "\f07a";
}
}
}
if(@han_fa_version == 'v5'){
i.ty-icon-moon-commerce,
.ty-icon-basket {
font-family: "Font Awesome\ 5 Free";
&:before {
content: "\f07a";
}
}
}
.small_fixes_mini_cart();
}