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
This should be a rather straight forward answer, as far as i'm aware the only way to add classes, id's to the body tag is to do an onMount(() =>{
const body = document.querySelector("body").
// apply logic here
})
And if you are using dynamic classes you're going to have to add a bunch of if statements that is tedious
Describe the proposed solution
My solution I think quite simple
instead of the above, we do this
<Svelte:body class="{whatever}"/>
Alternatives considered
N/A
Importance
would make my life easier
The text was updated successfully, but these errors were encountered:
Describe the problem
This should be a rather straight forward answer, as far as i'm aware the only way to add classes, id's to the body tag is to do an onMount(() =>{
const body = document.querySelector("body").
// apply logic here
})
And if you are using dynamic classes you're going to have to add a bunch of if statements that is tedious
Describe the proposed solution
My solution I think quite simple
instead of the above, we do this
<Svelte:body class="{whatever}"/>
Alternatives considered
N/A
Importance
would make my life easier
The text was updated successfully, but these errors were encountered: