You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding project level modes to let the user switch between light and dark mode works pretty well in a single storybook package.
When the user clicks the light/dark mode button, the content is re-rendered in the expected theme.
In a package composition however, the same is not true.
Clicking the button will update the decorator in the URL (address bar), but the attribute in HTML remains unchanged.
The user has the refresh/reload the page (F5) in order to see the story in the expected theme.
Describe the bug
Adding project level modes to let the user switch between light and dark mode works pretty well in a single storybook package.
When the user clicks the light/dark mode button, the content is re-rendered in the expected theme.
In a package composition however, the same is not true.
Clicking the button will update the decorator in the URL (address bar), but the attribute in HTML remains unchanged.
The user has the refresh/reload the page (F5) in order to see the story in the expected theme.
Reproduction link
https://stackblitz.com/edit/github-nk6zbbmz?file=.storybook-composed%2Fmain.js
Reproduction steps
yarn storybook
Note
Switching between light and dark mode in the composited stories directly under port 6007 works as expected
System
Additional context
No response
The text was updated successfully, but these errors were encountered: