We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c48409 commit 38ae5b8Copy full SHA for 38ae5b8
site/.storybook/preview.jsx
@@ -139,7 +139,7 @@ function withTheme(Story, context) {
139
// theme to the HTML class list. This approach is necessary because Tailwind
140
// CSS relies on class names to apply styles, and dynamically changing themes
141
// requires updating the class list accordingly.
142
- document.querySelector("html")?.classList.add(selected);
+ document.querySelector("html")?.setAttribute("class", selected);
143
144
return (
145
<StrictMode>
0 commit comments