You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.
The documentation states that we can retrieve a core color by not supplying a grade like this:
.foo {
color:color('blue');
}
However, I get this error on all colors except for white:
Message:
node_modules/ibm-design-colors/_ibm-colors.scss
Error: argument `$color` of `rgba($color, $alpha)` must be a color
Backtrace:
node_modules/ibm-design-colors/_ibm-colors.scss:52, in function `rgba`
node_modules/ibm-design-colors/_ibm-colors.scss:52, in function `color`
dashboard/src/styles/scss/_modal.scss:8
on line 52 of node_modules/ibm-design-colors/_ibm-colors.scss
>> @return rgba($grd, $alpha);
------------^
The text was updated successfully, but these errors were encountered:
By the way, it was hard to figure out what the bug was. I had to go into the source code of the .scss file and had to check what $grd value was throwing an error. To figure out where I was using the color function in a way that would throw an error, I had to add:
@if type-of($grd) != color {
@debug&;
}
An error to help trace back the problem would have been really helpful in this scenario.
The documentation states that we can retrieve a core color by not supplying a grade like this:
However, I get this error on all colors except for white:
The text was updated successfully, but these errors were encountered: