vanilla-extract icon indicating copy to clipboard operation
vanilla-extract copied to clipboard

assignInlineVars doesnt accept undefined values

Open sami616 opened this issue 4 years ago • 0 comments

Looks like right now we can work around this by passing an empty string, like so:

 style={assignInlineVars({ [pointColor]: point.color ?? '' })}

However, a nice quality of life change would be to just pass a possibly undefined value and let a fallbackVar handle it in my .css.ts

sami616 avatar Dec 18 '21 11:12 sami616