Skip to content

no-undef-class with :global #14

@eddiemoore

Description

@eddiemoore

If you have a global class that you only want something applied when it is a child of another class.

/* fails */
.holder :global .Select {}

If .holder doesn't have a class of it's own, it says that .holder is unused. To get it to pass we need to change .holder to have css applied otherwise it has an error of no-undef-class with .holder

/* passes */
.holder { display: block; }
.holder :global .Select {}

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions