Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

classTarget not updating preview node in storybook v7 #215

Closed
redonkulus opened this issue Feb 1, 2023 · 2 comments
Closed

classTarget not updating preview node in storybook v7 #215

redonkulus opened this issue Feb 1, 2023 · 2 comments

Comments

@redonkulus
Copy link

Recently updated to storybook v7 with the latest version of storybook-dark-mode. In storybook v6, when clicking the dark mode toggle icon, the preview iframe node specified via the classTarget option would update the class of the element. In v7, this no longer happens.

No error message displays in the browser console. Has storybook v7 been tested with this library yet?

My config:

darkMode: {
  classTarget: 'html',
  stylePreview: true
},
@hipstersmoothie
Copy link
Owner

I don't think the plugin is working at all in v7. closing in favor #205

@redonkulus
Copy link
Author

@hipstersmoothie most of the plugin works for me except this one issue. So I'm not sure its related to that other issue, I haven't seen that problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants