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

Merge Classes in Svelte #14259

Closed
K1ender opened this issue Nov 11, 2024 · 1 comment
Closed

Merge Classes in Svelte #14259

K1ender opened this issue Nov 11, 2024 · 1 comment

Comments

@K1ender
Copy link

K1ender commented Nov 11, 2024

Describe the problem

In Svelte, when passing class attributes from a parent component to a child component, the behavior does not automatically merge classes as it does in Vue.js. This can lead to situations where classes defined in the parent are not combined with classes defined in the child, especially when the child component has its own predefined classes.

Describe the proposed solution

I would like Svelte to automatically merge class attributes passed from a parent component to a child component, similar to how Vue.js handles class merging.

Importance

would make my life easier

@Prinzhorn
Copy link
Contributor

Prinzhorn commented Nov 11, 2024

This has come up countless times, e.g. #2870 or #5236 or #7776

@Conduitry Conduitry closed this as not planned Won't fix, can't repro, duplicate, stale Nov 11, 2024
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