Skip to content

Allow components to change Storybook globals #202

Closed
campb303 opened this issue Apr 5, 2021 · 1 comment
Closed

Allow components to change Storybook globals #202

campb303 opened this issue Apr 5, 2021 · 1 comment
Assignees
Labels
documentation Related to the writing documentation or the tools used to generate docs enhancement Request for a change to existing functionality quickfix Immediately actionable and should be fast

Comments

@campb303
Copy link
Collaborator

campb303 commented Apr 5, 2021

The ItemViewAppBar has a UI toggle for turning dark mode on/off. In our codebase this is a state variable. In Storybook this is a global context. We can implement a way to change the global context value and refresh the page inside ItemViewAppBar and other function according to this Storybook docs page.

@campb303 campb303 added documentation Related to the writing documentation or the tools used to generate docs enhancement Request for a change to existing functionality quickfix Immediately actionable and should be fast labels Apr 5, 2021
@campb303
Copy link
Collaborator Author

This was addressed in #198

Sign in to join this conversation on GitHub.
Labels
documentation Related to the writing documentation or the tools used to generate docs enhancement Request for a change to existing functionality quickfix Immediately actionable and should be fast
Projects
None yet
Development

No branches or pull requests

2 participants