bestguy / sveltestrap

Bootstrap 4 & 5 components for Svelte
https://sveltestrap.js.org
MIT License
1.3k stars 180 forks source link

Element not taking styles after assigning class #503

Closed kingy86 closed 1 year ago

kingy86 commented 1 year ago

After assigning a class name to the Button component to give it custom styles, it isn't taking the styles and VSCode shows the class in the styles as being unused.

jnysteen commented 1 year ago

I believe that you're affected by this general issue in Svelte: https://stackoverflow.com/questions/67049219/class-styling-on-a-custom-component-in-svelte-does-not-register