IssueRaiser

Introduce `<style module>` — update: `forward` directive

_Also see [the update](https://github.com/sveltejs/svelte/issues/6972#issuecomment-1371679372)_ ### Describe the problem Currently, Svelte's default mechanism for handling scoped styles is limited in many ways, and literally dozens if not hundreds of issues have been created over the years complaining about different aspects of it. One thing that stands out however, is the inability to pass down scoped classes to child components. Here are just a number of issues surrounding this: - https://github.com/sveltejs/svelte/issues/2870 - https://github.com/sveltejs/svelte/pull/2888 - https://github.com/sveltejs/svelte/issues/4843 - https://github.com/sveltejs/svelte/issues/4281 - https://github.com/sveltejs/rfcs/pull/22 Stack Overflow questions: - https://stackoverflow.com/questions/62903705/style-children-from-parent-using-a-class - https://stackoverflow.com/questions/67049219/class-styling-on-a-custom-component-in-svelte-does-not-register Some notable comments that beautifully describe this problem: - https://github.com/sveltejs/svelte/pull/2888#issuecomment-554782656 - https://github.com/sveltejs/rfcs/pull/13#issuecomment-653936666 - https://github.com/sveltejs/svelte/pull/2888#issuecomment-554768219 - https://github.com/sveltejs/svelte/pull/2888#issuecomment-569168419 - https://github.com/sveltejs/svelte/pull/2888#issuecomment-586576769 - https://github.com/sveltejs/svelte/issues/2870#issuecomment-496023106 - https://github.com/sveltejs/svelte/issues/2870#issuecomment-49723

Posted by aradalvand on Dec 1, 2021, 1:49 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

reliability (Software)

Introduce `<style module>` — update: `forward` directive

aradalvandDec 1, 2021, 1:49 PM

_Also see [the update](https://github.com/sveltejs/svelte/issues/6972#issuecomment-1371679372)_ ### Describe the problem Currently, Svelte's default mechanism for handling scoped styles is limited in many ways, and literally dozens if not hundreds of issues have been created over the years complaining about different aspects of it. One thing that stands out however, is the inability to pass down scoped classes to child components. Here are just a number of issues surrounding this: - https://github.com/sveltejs/svelte/issues/2870 - https://github.com/sveltejs/svelte/pull/2888 - https://github.com/sveltejs/svelte/issues/4843 - https://github.com/sveltejs/svelte/issues/4281 - https://github.com/sveltejs/rfcs/pull/22 Stack Overflow questions: - https://stackoverflow.com/questions/62903705/style-children-from-parent-using-a-class - https://stackoverflow.com/questions/67049219/class-styling-on-a-custom-component-in-svelte-does-not-register Some notable comments that beautifully describe this problem: - https://github.com/sveltejs/svelte/pull/2888#issuecomment-554782656 - https://github.com/sveltejs/rfcs/pull/13#issuecomment-653936666 - https://github.com/sveltejs/svelte/pull/2888#issuecomment-554768219 - https://github.com/sveltejs/svelte/pull/2888#issuecomment-569168419 - https://github.com/sveltejs/svelte/pull/2888#issuecomment-586576769 - https://github.com/sveltejs/svelte/issues/2870#issuecomment-496023106 - https://github.com/sveltejs/svelte/issues/2870#issuecomment-49723

Comments (0)

No comments yet. Start the discussion.

Comment on this issue