agnosticui icon indicating copy to clipboard operation
agnosticui copied to clipboard

Lots of warnings of unused CSS selector

Open jarecsni opened this issue 2 years ago • 1 comments

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?

jarecsni avatar May 31 '22 07:05 jarecsni

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!

roblevintennis avatar May 31 '22 17:05 roblevintennis