Closed jtlapp closed 2 years ago
This is a svelte limitation unfortunately, not specific to sveltestrap. Svelte does not recognize scoped classes on custom components, only Dom elements like div, input, etc.
You could use this selector:
:global(.title) {
...
}
which adds global css for your class added
Ah, I should have figured that out for myself. Thank you!
Is there a way to get sveltestrap to recognize the use of local CSS selectors?
For example, I have this in my HTML and CSS:
But Svelte gives me an "Unused CSS selector" warning.
Do I need to disable this warning to use sveltestrap?