Skip to content

Commit

Permalink
Color picker can't deal with 'transparent' keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Mar 30, 2021
1 parent 6951762 commit 2c6b796
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/components/src/controls/Color.tsx
Expand Up @@ -294,7 +294,10 @@ export const ColorControl: FC<ColorProps> = ({
onVisibilityChange={() => addPreset(color)}
tooltip={
<TooltipContent>
<Picker {...{ color: realValue, onChange: updateValue, onFocus, onBlur }} />
<Picker
color={realValue === 'transparent' ? '#000000' : realValue}
{...{ onChange: updateValue, onFocus, onBlur }}
/>
{presets.length > 0 && (
<Swatches>
{presets.map((preset) => (
Expand Down

0 comments on commit 2c6b796

Please sign in to comment.