Skip to content

Commit

Permalink
document the process-collecction mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
woodcox authored Apr 15, 2024
1 parent 9f10887 commit 2d6a31a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/generator/workers/_process-collection.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@
}
}
}
// Check if the $collection is a list of maps
} @else if meta.type-of($collection) == 'list' {
@each $map in $collection {
// For each $map in the $collection process it through the process-collection mixin
@include process-collection($map, $prefix, $selector, $is-breakpoint);
}
} @else {
@error "Invalid collection type: #{$collection}. Expected map or list.";
@error "Invalid collection type: #{$collection}. Expected map or list of maps.";
}
}

0 comments on commit 2d6a31a

Please sign in to comment.