Skip to content

Invalid fix for suggestCanonicalClasses with white spaces in selector #1544

@schoero

Description

@schoero

What version of VS Code are you using?

v1.108.2

What version of Tailwind CSS IntelliSense are you using?

v0.14.29

What version of Tailwind CSS are you using?

v4.1.18

What package manager are you using?

npm v11.6.2

What operating system are you using?

macOS Sequoia v15.7.3

Tailwind CSS Stylesheet (v4) or config file (v3)

@import "tailwindcss";

VS Code settings

{
  "files.associations": {
    "*.css": "tailwindcss"
  }
}

Reproduction URL

https://play.tailwindcss.com/SPRg6baOH0

Describe your issue

The suggestCanonicalClasses feature recommends an invalid fix when a selector contains white spaces. As seen in the reproduction demo, the class without the whitespaces is not working.

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions