Skip to content

Commit

Permalink
fix(color.name-replace()): change variable $update to $replace, s…
Browse files Browse the repository at this point in the history
…et argument `$type` to `null` by default, use directly `adjustment.has()`.
  • Loading branch information
sciborrudnicki committed Jan 2, 2024
1 parent fda9204 commit 5e7068e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions color/name/_name.replace.function.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@use '../../var/var.variables' as variables;

// Modules.
@use 'adjustment';
@use 'adjustment/adjustment.has.function';

// Module functions.
@use 'name.create.function' as *;
Expand All @@ -22,14 +22,14 @@
@function replace(
$name,
$replace,
$type,
$type: null,
$delimiter: map.get(variables.$var, delimiter),
$shade: (dark, light),
) {
@return if(
adjustment.has($name),
list.set-nth($name, 1, create($update, $type, $delimiter, $shade)),
create($update, $type, $delimiter, $shade)
list.set-nth($name, 1, create($replace, $type, $delimiter, $shade)),
create($replace, $type, $delimiter, $shade)
);
}

Expand Down

0 comments on commit 5e7068e

Please sign in to comment.