storybook-addon-styled-component-theme icon indicating copy to clipboard operation
storybook-addon-styled-component-theme copied to clipboard

Change iframe background with theme selection

Open theAdhocracy opened this issue 4 years ago • 2 comments

Is there a way to change the background colour of the iframe/body element when a different them is selected? Currently we're using the addon-backgrounds plugin as well which gives us some capability, but the workflow of changing theme, then changing background isn't that streamlined.

It would be great if selecting the theme actively applied a background colour instead. I've tried emulating this using wrappers but to no success. Open to ideas on whether this is (or could be) possible.

theAdhocracy avatar Aug 10 '20 11:08 theAdhocracy

I came here to enter this feature request, it's pretty critical for when some themes are dark and some are light focused.

r0zar avatar May 04 '21 16:05 r0zar

I too was trying to use another decorator to achieve this, didn't have luck

rickyzhangca avatar May 05 '22 21:05 rickyzhangca