Skip to content

Selector is never used  #110

@neosa

Description

@neosa
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions