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

fix: use classTarget when updating manager too #223

Merged
merged 1 commit into from
Feb 26, 2023
Merged

fix: use classTarget when updating manager too #223

merged 1 commit into from
Feb 26, 2023

Conversation

airtonix
Copy link
Contributor

@airtonix airtonix commented Feb 25, 2023

fixes #174

seems like the moment you import any storybook-dark-mode into the preview side of things, updateManager is causes the body tag to have the classname put on it.

if we specify

export const parameters = {
  darkMode: {
      classTarget: 'html'
  },
};

Seems to me that what we really want is that only the html tag be manipulated.

seems like the moment you import any `storybook-dark-mode` into the preview side of things, `updateManager` is causes the body tag to have the classname put on it.


if we specific 

```tsx
export const parameters = {
  darkMode: {
      classTarget: 'html'
  },
};
```

Seems to me that what we really want is that only the `html` tag be manipulated.
@hipstersmoothie hipstersmoothie merged commit 4d76843 into hipstersmoothie:master Feb 26, 2023
@airtonix airtonix deleted the patch-1 branch February 26, 2023 14:33
@hipstersmoothie
Copy link
Owner

🚀 PR was released in v3.0.0 🚀

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

Successfully merging this pull request may close these issues.

Preview class target html NOT WORKING
2 participants