Skip to content

Formatter incorrectly formats CSS pseudo-element selectors #72

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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