Skip to content

Commit

Permalink
fix(name.adjust()): change > 0 to !=.
Browse files Browse the repository at this point in the history
  • Loading branch information
sciborrudnicki committed Dec 15, 2023
1 parent caa723a commit 2ab64bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions color/name/_name.adjust.function.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@
$saturation: adjustment.calculate($saturation, map.get($adjustment, saturation), map.get($adjust, saturation), 0%);

// Add hue, saturation, lightness or alpha to color name.
@if $lightness and $lightness > 0% {
@if $lightness and $lightness != 0% {
$name: list-append.append(($name,), $lightness, $separator);
@if $alpha and $alpha > 0 {
@if $alpha and $alpha != 0 {
$name: list-append.append($name, $alpha, $separator);
@if $hue and $hue > 0deg {
@if $hue and $hue != 0deg {
$name: list-insert-nth.insert-nth($name, 2, $hue);
@if $saturation and $saturation > 0% {
@if $saturation and $saturation != 0% {
$name: list-insert-nth.insert-nth($name, 3, $saturation);
}
}
Expand Down

0 comments on commit 2ab64bc

Please sign in to comment.