AgnosticUI / agnosticui

AgnosticUI is a set of UI primitives that start their lives in clean HTML and CSS. These standards compliant components are then copied to our framework implementations in: React, Vue 3, Angular, and Svelte.
https://agnosticui.com
Apache License 2.0
723 stars 47 forks source link

Lots of warnings of unused CSS selector #234

Open jarecsni opened 2 years ago

jarecsni commented 2 years ago

Just installed AgnosticUI in a SvelteKit project, and I'm getting tons of warnings in the terminal console:

...
08:00:42 [vite-plugin-svelte] /Users/janos/dev/nodeviz-testapp/node_modules/agnostic-svelte/components/Avatar/AvatarGroup.svelte:92:0 Unused CSS selector ".avatar-group .avatar"
08:00:44 [vite-plugin-svelte] /Users/janos/dev/nodeviz-testapp/node_modules/agnostic-svelte/components/Table/Table.svelte:148:0 Unused CSS selector ".table-stacked th[data-label]::before"
...

Am I missing something?

roblevintennis commented 2 years ago

Yes, I think it's a valid issue and an artifact of the fact we're copying the CSS over wholesale but there are a few Svelte SFCs that indeed have unused selectors as reported.

Let's keep this issue open for now and I'll have think on the best solution and find time to fix this. I'm very busy at the moment so it may be a while until I can tackle this properly. Sorry for the inconvenience!