You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently tried to use a class directive on the <svelte:body> special element. It didn't work, and I read up on the docs to realize it's only for binding events. I feel like it would be a nice feature to have.
Describe the proposed solution
Allow binding classes/attributes to the svelte:body special element.
Alternatives considered
You could achieve this using javascript but then you're leaving the svelte ecosystem and dealing with the issues a front-end framework is there to solve.
Importance
nice to have
The text was updated successfully, but these errors were encountered:
Describe the problem
I recently tried to use a class directive on the
<svelte:body>
special element. It didn't work, and I read up on the docs to realize it's only for binding events. I feel like it would be a nice feature to have.Describe the proposed solution
Allow binding classes/attributes to the svelte:body special element.
Alternatives considered
You could achieve this using javascript but then you're leaving the svelte ecosystem and dealing with the issues a front-end framework is there to solve.
Importance
nice to have
The text was updated successfully, but these errors were encountered: