Merge pull request #2624 from Primigenus/patch-2

Pass alpha transparency up to the story
This commit is contained in:
Norbert de Langen 2018-01-04 00:17:41 +01:00 committed by Michael Shilman
parent 94c01e2d54
commit dd55884b7d

View File

@ -84,7 +84,12 @@ class ColorType extends React.Component {
this.popover = e;
}}
>
<SketchPicker color={knob.value} onChange={color => onChange(color.hex)} />
<SketchPicker
color={knob.value}
onChange={color =>
onChange(`rgba(${color.rgb.r},${color.rgb.g},${color.rgb.b},${color.rgb.a})`)
}
/>
</div>
),
() => null