Skip to content

Formatter incorrectly formats CSS pseudo-element selectors #72

@Flo0807

Description

@Flo0807

Hey!

It looks like the formatter is incorrectly formatting CSS pseudo-element selectors by moving one of the colons from the double-colon syntax (::).

I have the following class in my app:

[&.select::picker(select)]:bg-base-100

When I run mix format with the TailwindFormatter enabled, it becomes:

:[&.select:picker(select)]:bg-base-100

Note that one colon is moved to the front. This changes the behavior and breaks my app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions