@@ -170,7 +170,7 @@ final global = UnmodifiableListView([
170
170
warnForDeprecation (
171
171
"adjust-hue() is deprecated. Suggestion:\n "
172
172
"\n "
173
- "color.adjust(\$ color, \$ hue: $suggestedValue )\n "
173
+ "color.adjust(\$ color, \$ hue: ${ suggestedValue . toCssString ()} )\n "
174
174
"\n "
175
175
"More info: https://sass-lang.com/d/color-functions" ,
176
176
Deprecation .colorFunctions,
@@ -2019,7 +2019,7 @@ String _suggestScaleAndAdjust(
2019
2019
var factorNumber = SassNumber (factor * 100 , '%' );
2020
2020
suggestion += "s:\n "
2021
2021
"\n "
2022
- "color.scale(\$ color, \$ $channelName : $factorNumber )\n " ;
2022
+ "color.scale(\$ color, \$ $channelName : ${ factorNumber . toCssString ()} )\n " ;
2023
2023
} else {
2024
2024
suggestion += ":\n\n " ;
2025
2025
}
@@ -2028,7 +2028,8 @@ String _suggestScaleAndAdjust(
2028
2028
adjustment,
2029
2029
channel == ColorChannel .alpha ? null : '%' ,
2030
2030
);
2031
- return suggestion + "color.adjust(\$ color, \$ $channelName : $difference )" ;
2031
+ return suggestion +
2032
+ "color.adjust(\$ color, \$ $channelName : ${difference .toCssString ()})" ;
2032
2033
}
2033
2034
2034
2035
/// Throws an error indicating that a missing channel named [name] can't be
@@ -2037,7 +2038,7 @@ Never _missingChannelError(SassColor color, String channel) =>
2037
2038
throw SassScriptException (
2038
2039
"Because the CSS working group is still deciding on the best behavior, "
2039
2040
"Sass doesn't currently support modifying missing channels (color: "
2040
- "$color )." ,
2041
+ "${ color . toCssString ()} )." ,
2041
2042
channel,
2042
2043
);
2043
2044
0 commit comments