Skip to content

Diagnostic suggestCanonicalClasses suggests looping fix #1481

@ulrichstark

Description

@ulrichstark

On shadcn's command component, I get following error from the new suggestCanonicalClasses diagnostic:

The class `[&_[cmdk-group-heading]]:text-muted-foreground` can be written as `**:[&_[cmdk-group-heading]]:text-muted-foreground`

It suggests adding **: before the class. But after doing that, it reports the diagnostic again for the supposedly fixed class and suggests adding another **: forever:

The class `**:[&_[cmdk-group-heading]]:text-muted-foreground` can be written as `**:**:[&_[cmdk-group-heading]]:text-muted-foreground`

Sorry for not using the template and creating a repro project. I'm too lazy and the issue is probably obvious. If not, I can take the time to create a repro project.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions