@@ -170,7 +170,7 @@ final global = UnmodifiableListView([
170170 warnForDeprecation (
171171 "adjust-hue() is deprecated. Suggestion:\n "
172172 "\n "
173- "color.adjust(\$ color, \$ hue: $suggestedValue )\n "
173+ "color.adjust(\$ color, \$ hue: ${ suggestedValue . toCssString ()} )\n "
174174 "\n "
175175 "More info: https://sass-lang.com/d/color-functions" ,
176176 Deprecation .colorFunctions,
@@ -2019,7 +2019,7 @@ String _suggestScaleAndAdjust(
20192019 var factorNumber = SassNumber (factor * 100 , '%' );
20202020 suggestion += "s:\n "
20212021 "\n "
2022- "color.scale(\$ color, \$ $channelName : $factorNumber )\n " ;
2022+ "color.scale(\$ color, \$ $channelName : ${ factorNumber . toCssString ()} )\n " ;
20232023 } else {
20242024 suggestion += ":\n\n " ;
20252025 }
@@ -2028,7 +2028,8 @@ String _suggestScaleAndAdjust(
20282028 adjustment,
20292029 channel == ColorChannel .alpha ? null : '%' ,
20302030 );
2031- return suggestion + "color.adjust(\$ color, \$ $channelName : $difference )" ;
2031+ return suggestion +
2032+ "color.adjust(\$ color, \$ $channelName : ${difference .toCssString ()})" ;
20322033}
20332034
20342035/// Throws an error indicating that a missing channel named [name] can't be
@@ -2037,7 +2038,7 @@ Never _missingChannelError(SassColor color, String channel) =>
20372038 throw SassScriptException (
20382039 "Because the CSS working group is still deciding on the best behavior, "
20392040 "Sass doesn't currently support modifying missing channels (color: "
2040- "$color )." ,
2041+ "${ color . toCssString ()} )." ,
20412042 channel,
20422043 );
20432044
0 commit comments