You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a button from one of the svelte frameworks that has class.
Svelte is not detecting properly that style is used.
-> Unused CSS selector ".upload-button"svelte(css-unused-selector)
Using class on a div will resolve an issue! Only custom properties are failing!
Can you please provide actual steps to reproduce? Preferably as REPL. My guess is that you are using a component that has a class prop, which would be a duplicate of:
Can you please provide actual steps to reproduce? Preferably as REPL. My guess is that you are using a component that has a class prop, which would be a duplicate of:
In one of the answers an awful solution is mentioned with some hacky language and extra wrappings to accomplish basic things. Any reason why this check cannot work or be a flag for the compiler to understand components props?
Describe the bug
I have a button from one of the svelte frameworks that has class.
Svelte is not detecting properly that style is used.
-> Unused CSS selector ".upload-button"svelte(css-unused-selector)
Using class on a div will resolve an issue! Only custom properties are failing!
Reproduction
Logs
Unused CSS selector ".upload-button"svelte(css-unused-selector)
System Info
Severity
blocking all usage of svelte
The text was updated successfully, but these errors were encountered: