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

Ability to bind attributes & classes to <svelte:body> #6956

Closed
GavHern opened this issue Nov 23, 2021 · 1 comment
Closed

Ability to bind attributes & classes to <svelte:body> #6956

GavHern opened this issue Nov 23, 2021 · 1 comment

Comments

@GavHern
Copy link

GavHern commented Nov 23, 2021

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

@baseballyama
Copy link
Member

Duplicate of #3105

And already there is PR.
#6928

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

3 participants