Skip to content

Commit a70b00d

Browse files
authored
Remove adjust-hue() from sass:color (#1465)
See sass/sass#2740
1 parent 8a55287 commit a70b00d

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

spec/core_functions/modules/color.hrx

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,6 @@ a {
7373
b: #c3d5ef;
7474
}
7575

76-
<===>
77-
================================================================================
78-
<===> adjust_hue/input.scss
79-
@use "sass:color";
80-
a {b: color.adjust-hue(#abcdef, 15)}
81-
82-
<===> adjust_hue/output.css
83-
a {
84-
b: #abbcef;
85-
}
86-
8776
<===>
8877
================================================================================
8978
<===> complement/input.scss
@@ -319,6 +308,24 @@ Error: Undefined function.
319308
'
320309
input.scss 2:7 root stylesheet
321310

311+
<===>
312+
================================================================================
313+
<===> error/adjust_hue/input.scss
314+
@use "sass:color";
315+
a {b: color.adjust-hue(#abcdef, 10)}
316+
317+
<===> error/adjust_hue/error
318+
Error: The function adjust-hue() isn't in the new module system.
319+
320+
Recommendation: color.adjust(#abcdef, $hue: 10)
321+
322+
More info: https://sass-lang.com/documentation/functions/color#adjust-hue
323+
,
324+
2 | a {b: color.adjust-hue(#abcdef, 10)}
325+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
326+
'
327+
input.scss 2:7 root stylesheet
328+
322329
<===>
323330
================================================================================
324331
<===> error/lighten/input.scss

0 commit comments

Comments
 (0)