Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selector is never used #110

Open
neosa opened this issue Dec 30, 2023 · 1 comment
Open

Selector is never used #110

neosa opened this issue Dec 30, 2023 · 1 comment

Comments

@neosa
Copy link

neosa commented Dec 30, 2023

  • WebStorm 2023.3.2
  • Styled-components plugin version: 233.13135.92

Problem description:

I noticed a problem after updating to the latest version of Webstorm when I want to write the class some_class, for example, into the Wrapper wrapper. Webstorm shows that this class has never been used, but this is not true.

WebStorm highlights only regular tags in the style h1-h5, p, ul, etc.

const Wrapper = styled.div`
// h3 is highlighted by the editor
h3 {
color: #242628;
font-size: 20px;
font-weight: 700;
line-height: 140%;
}

     // Selector some_class is never used
.some_class {
	margin-top: 20px;
}

`

image

@anjeypakulnevich
Copy link

Same here. Also doesn't parse custom properties. Marks all of them as invalid and says "Cannot resolve '{customProperty}' custom property"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants