Closed lorcan-codes closed 4 months ago
I added the configuration below in preview.js
export const parameters = { darkMode: { classTarget: "body", dark: themes.dark, darkClass: ["dark"], light: themes.light, lightClass: ["light"], stylePreview: true, userHasExplicitlySetTheTheme: false, }, }
I am getting an error below when I run the storybook.
Failed to execute 'remove' on 'DOMTokenList': The token provided must not be empty.
Does toggleDarkClass handle the case where body/html does not have any classes?
toggleDarkClass
It was a cache issue.
I added the configuration below in preview.js
I am getting an error below when I run the storybook.
Failed to execute 'remove' on 'DOMTokenList': The token provided must not be empty.
Does
toggleDarkClass
handle the case where body/html does not have any classes?