-
Notifications
You must be signed in to change notification settings - Fork 16
Storybook 7 - docs-root does not exists to add dark
class
#14
Comments
@renatomoor the element that had the id The change can be seen here storybookjs/storybook#10638 |
@freddyamarante has made the fix and has also released the new version |
Hi @freddyamarante , thank you for fixing it. Not sure it is an issue with storybook 7 or this case is failing. The controls are showing correct colors for dark and light mode. However, the background color remains white. Button in light-mode Button in dark-mode Perhaps need to update background color of the body element having preview.ts file for a reference
|
I'll take a look at it! I also think would be convenient to add a way to input what background color you want, I'll pr soon |
Hi @renatomoor and @freddyamarante, this recent request is closed, would you advise moving to a new issue or mark this to 'open'. |
Hi @renatomoor,
Thank you for your efforts working on this package.
There is an error observed for Storybook 7. The element to add
dark
class is null as there is no such element exists with the iddocs-root
. This errors out when addingdark
class.Changing the background of
body
element is working, but this is a hack. Please advise.storybook-tailwind-dark-mode/src/withGlobals.js
Line 9 in 2860d30
Receiving this error for Docs:
The text was updated successfully, but these errors were encountered: