storybookjs / storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
https://storybook.js.org
MIT License
84.54k stars 9.3k forks source link

Provide api for addon-backgrounds #13287

Open khats opened 3 years ago

khats commented 3 years ago

Is your feature request related to a problem? Please describe I want to able select of backgrounds for story with api call using @storybook/addon-backgrounds

Describe the solution you'd like I expect @storybook/addon-backgrounds will handle "CHANGE_COLOR" with argument color and change selected story background

Describe alternatives you've considered Current solution for my case is: create static decorator with black background for several stories

Are you able to assist to bring the feature to reality? no

stale[bot] commented 3 years ago

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

HosseinAgha commented 2 years ago

This is an interesting feature for us as we want to change the default background based on the selected theme (using addon-toolbar inside the globals)