Closed ritchieanesco closed 3 years ago
You must use global class. So add it in global.css
or as :global(.active){...}
in the component.
In case you need isolated class in the component - use complex :global selector:
<style>
...
a :global(.active) {
font-weight: 600;
}
</style>
Thanks @AlexxNB thats exactly what I was looking for. Not sure why I couldn’t find it in the svelte docs
I am trying to use the
active
action and i'm getting the following warning from svelte linter: Unused CSS selector "a.active"Here's a basic example of what is happening.
Thoughts on how I can resolve this?