mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 21:41:21 +08:00
Merge pull request #11265 from matus12/Allow_gradient_in_story_previews
Addon-backgrounds: Allow gradients in story preview
This commit is contained in:
commit
1900256e4f
@ -178,7 +178,7 @@ export class BackgroundSelector extends Component<Props> {
|
|||||||
<Global
|
<Global
|
||||||
styles={(theme: Theme) => ({
|
styles={(theme: Theme) => ({
|
||||||
[`#${iframeId}`]: {
|
[`#${iframeId}`]: {
|
||||||
backgroundColor:
|
background:
|
||||||
selectedBackgroundColor === 'transparent'
|
selectedBackgroundColor === 'transparent'
|
||||||
? theme.background.content
|
? theme.background.content
|
||||||
: selectedBackgroundColor,
|
: selectedBackgroundColor,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user