hipstersmoothie / storybook-dark-mode

A storybook addon that lets your users toggle between dark and light mode.
MIT License
435 stars 56 forks source link

Add parameter for classTarget to toggle iframe preview class #144

Closed dricholm closed 3 years ago

dricholm commented 3 years ago

Add a new parameter classTarget, which can be set to define where the dark class should be toggled inside the iframe document. Defaults to existing functionality, toggling the class on the iframe's body.

Closes #133.

hipstersmoothie commented 3 years ago

@dricholm could you add this option to the README?

dricholm commented 3 years ago

@hipstersmoothie Thank you for reminding me. I pushed a new commit.

hipstersmoothie commented 3 years ago

:rocket: PR was released in v1.0.7 :rocket: