Closed as not planned
Description
Describe the bug
The code below will bark on class: "this type of directive is not valid on components"
This is very frustrating. Not only does it fail to compile, but manually creating the class string won't be detected by Svelte, and the .rtl CSS class will be marked as unused.
<MyComponent
class:rtl={isRTL}>
This will not work, class: can't be used on custom components
</MyComponent>
...
<style>
.rtl {
direction: rtl;
}
</style>
Reproduction
Logs
No response
System Info
any browser
Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels