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
if (!(color.hasOwnProperty('hex')
|| (color.hasOwnProperty('r') && color.hasOwnProperty('b') && color.hasOwnProperty('g'))
)) {
throw Error('Colors must provide at least a hex or rgb value');
}
Hi !
While testing the RGB mode, I created a custom palette containing (among others) black color.
When generating the component, in the verifyPalette(palette) function, verification fails due to these lines :
As color is defined with its R, G and B attributes that are all 0, color.r, color.g, color.b and color.hex are all falsy values.
Could you please check this issue ?
Thanks for your work on this nice component !
Xavier
The text was updated successfully, but these errors were encountered: