Skip to content

Commit

Permalink
Fix the name of the blackness argument (#1264)
Browse files Browse the repository at this point in the history
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
  • Loading branch information
stof and nex3 committed Apr 15, 2021
1 parent 2ab4f80 commit 39f19be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/functions/color.dart
Expand Up @@ -691,12 +691,12 @@ Value _hwb(List<Value> arguments) {
var blackness = arguments[2].assertNumber("blackness");

whiteness.assertUnit("%", "whiteness");
blackness.assertUnit("%", "whiteness");
blackness.assertUnit("%", "blackness");

return SassColor.hwb(
hue.value,
whiteness.valueInRange(0, 100, "whiteness"),
blackness.valueInRange(0, 100, "whiteness"),
blackness.valueInRange(0, 100, "blackness"),
alpha.andThen((alpha) =>
_percentageOrUnitless(alpha.assertNumber("alpha"), 1, "alpha")));
}
Expand Down

0 comments on commit 39f19be

Please sign in to comment.