mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
Merge pull request #2624 from Primigenus/patch-2
Pass alpha transparency up to the story
This commit is contained in:
parent
94c01e2d54
commit
dd55884b7d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user