diff --git a/lib/src/migrators/module/built_in_functions.dart b/lib/src/migrators/module/built_in_functions.dart index 3edea86c..da4057d7 100644 --- a/lib/src/migrators/module/built_in_functions.dart +++ b/lib/src/migrators/module/built_in_functions.dart @@ -115,6 +115,7 @@ const builtInFunctionNameChanges = { /// If the value from the removed function must be negated when passed to /// `adjust-color`, the parameter ends with a `-`. const removedColorFunctions = { + "adjust-hue": r"$hue: ", "lighten": r"$lightness: ", "darken": r"$lightness: -", "saturate": r"$saturation: ", diff --git a/test/migrators/module/convert_color_adjust.hrx b/test/migrators/module/convert_color_adjust.hrx index 7e02152b..6f680755 100644 --- a/test/migrators/module/convert_color_adjust.hrx +++ b/test/migrators/module/convert_color_adjust.hrx @@ -8,6 +8,7 @@ $f: fade-in($color: purple, $amount: 10%); $g: transparentize(#37f, 20%); $h: fade-out(rgba(10, 20, 30, 0.5), 10%); $i: lighten(pink, 5%, 10%); // too many arguments +$j: adjust-hue(green, 10%); <==> output/entrypoint.scss @use "sass:color"; @@ -20,6 +21,7 @@ $f: color.adjust($color: purple, $alpha: 10%); $g: color.adjust(#37f, $alpha: -20%); $h: color.adjust(rgba(10, 20, 30, 0.5), $alpha: -10%); $i: lighten(pink, 5%, 10%); // too many arguments +$j: color.adjust(green, $hue: 10%); <==> warning.txt WARNING on line 9, column 5 of entrypoint.scss: Could not migrate malformed 'lighten' call