Skip to content

Commit

Permalink
refactor(variant/indicator): remove indicator from nested lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
sciborrudnicki committed Nov 13, 2023
1 parent 2d90fbd commit 9acd4a3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions variant/indicator/_indicator.remove.function.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
@each $value in $item {
@if type-of($value) == string {
$item: list.set-nth($item, $i, string.replace(#{$value}, all, $indicator, ''));
} @else if type-of($value) == list {
$j: 1;
@each $v in $value {
$value: list.set-nth($value, $j, string.replace(#{$v}, all, $indicator, ''));
$j: $j + 1;
}

$item: list.set-nth($item, $i, $value);
}

$i: $i + 1;
Expand Down

0 comments on commit 9acd4a3

Please sign in to comment.