Skip to content

Commit

Permalink
refactor(color.variant()): use $modifier argument in the `class.var…
Browse files Browse the repository at this point in the history
…iant()`.
  • Loading branch information
sciborrudnicki committed Sep 27, 2023
1 parent 3c45d3b commit dd72913
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion color/mixins/_color.variant.mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
$dictionary: (),
$property: null,
$function: meta.get-function(class),
$modifier: null,
) {
$variant-property: null;

Expand All @@ -56,7 +57,7 @@
$max-count: if($variant-property and list.separator($variant-property) == comma, list.length($variant-property), 0);
$count: 0;

@include class.variant($variant, $pseudo-class, $dictionary, $function, map) using($resolved) {
@include class.variant($variant, $pseudo-class, $dictionary, $function, map, $modifier) using($resolved) {
$attribute: map.get($resolved, attribute);
$color: map.get($resolved, value);
$-property: if(meta.type-of($property) == map, map.get($property, name), $property) or map.get($resolved, property) or color;
Expand Down

0 comments on commit dd72913

Please sign in to comment.