I Have Variable $direction , $left , $direction
$direction == rtl ;
$left:left;
$right:right;
@if($direction == rtl){
$left : right;
$right : left;
}
I Want Change In
@include border-right-radius(0);
as
@include border-#{$right}-radius(0);
I See Error
I Want Get Result as
@include border-left-radius(0);
I Know i Can Use
@if($direction == rtl){
@include border-left-radius(0);
}@else{
@include border-right-radius(0);
}
notes in url How to define a dynamic mixin or function name in SASS? he want create dynamically mixins , put i want retrieve dynamically mixins
Update I have change in mixins function and retrieve as static mixins , It seems more logical And a shortcut to time