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

Add multiple classes? #219

Open
chris-dura opened this issue Feb 16, 2023 · 1 comment
Open

Add multiple classes? #219

chris-dura opened this issue Feb 16, 2023 · 1 comment

Comments

@chris-dura
Copy link
Contributor

Is there a way to add multiple classes?

darkMode: {
		current: "light",
		light: myThemeLight,
		dark: myThemeDark,
		lightClass: "my-theme my-theme--light",
		darkClass: "my-theme my-theme--dark",
		classTarget: "html",
		stylePreview: true,
	},

This gives an error:

ndors~main.f4a0d82e8f8bf122d552.manager.bundle.js:44 Uncaught DOMException: Failed to execute 'add' on 'DOMTokenList': The token provided ('my-theme my-theme--dark') contains HTML space characters, which are not valid in tokens.
    at toggleDarkClass (http://localhost:5280/vendors~main.f4a0d82e8f8bf122d552.manager.bundle.js:44:1698630)
    at updateManager (http://localhost:5280/vendors~main.f4a0d82e8f8bf122d552.manager.bundle.js:44:1699277)
    at Module.<anonymous> (http://localhost:5280/vendors~main.f4a0d82e8f8bf122d552.manager.bundle.js:44:1699871)
    at __webpack_require__ (http://localhost:5280/runtime~main.c35c46b9c170e8c7a963.manager.bundle.js:1:1301)
    at 494 (http://localhost:5280/main.d66d44eb2fd75c955afa.manager.bundle.js:1:531005)
    at __webpack_require__ (http://localhost:5280/runtime~main.c35c46b9c170e8c7a963.manager.bundle.js:1:1301)
    at checkDeferredModules (http://localhost:5280/runtime~main.c35c46b9c170e8c7a963.manager.bundle.js:1:957)
    at Array.webpackJsonpCallback [as push] (http://localhost:5280/runtime~main.c35c46b9c170e8c7a963.manager.bundle.js:1:645)
    at http://localhost:5280/main.d66d44eb2fd75c955afa.manager.bundle.js:1:47
t
@hipstersmoothie
Copy link
Owner

Doesn't seem like it! @chris-dura would you want to submit a pr to fix?

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

No branches or pull requests

2 participants