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
- [BUG] Cowork (Windows): all Plan9 shares fail with "Plan9 mount failed: invalid argument" after Windows update KB5124008 (26200.9445) — uninstalling the KB fixe
- Feature Request: Auto-resume CLI session when usage limit resets
- Please deobfuscate the Python
- [Bug] MLX version of Gemma 4 26B fails to load: "Model type gemma4 not supported" (macOS)
- # 233 Developers Discussed Abandoning the Office Add-in Platform — An Open Letter on the Office.js Stability, Security & Trust Crisis
- [FEATURE] Allow users to configure which shell the Bash tool uses or inherit initial shell
Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments
reliability (Software)
[BUG] Cowork (Windows): all Plan9 shares fail with "Plan9 mount failed: invalid argument" after Windows update KB5124008 (26200.9445) — uninstalling the KB fixe
Feature Request: Auto-resume CLI session when usage limit resets
Please deobfuscate the Python
[Bug] MLX version of Gemma 4 26B fails to load: "Model type gemma4 not supported" (macOS)
# 233 Developers Discussed Abandoning the Office Add-in Platform — An Open Letter on the Office.js Stability, Security & Trust Crisis
[FEATURE] Allow users to configure which shell the Bash tool uses or inherit initial shell
Admin Materials and Surfaces
AMD Support
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
Comments (0)
No comments yet. Start the discussion.