You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>