ui icon indicating copy to clipboard operation
ui copied to clipboard

make SmartWatch work with `transparent` and `currentColor`

Open georggrubner opened this issue 5 years ago • 0 comments

The two values transparent and currentColor are valid css color values and therefore, the SmartWatch component should not fail with a runtime error trying to parse them.

example code:

const calculatedTheme = {
    ...theme,
    colors: {
        ...theme.colors,
        transparent: 'transparent',
        current: 'currentColor',
    },
}

return <ThemeColors theme={calculatedTheme} />

without those two values, it works fine

georggrubner avatar Mar 03 '21 09:03 georggrubner