Skip to content

Wrong formatted output with pseudo selectors #15

Description

@suparngp

I have the following code

const Control = styled.div`
  display: flex;
`;

const ControlGroup = styled.div`
  display: flex;
  > ${Control}:not(:first-child) {
    margin-left: 12px;
  }
`;

After formatting, the output is

const ControlGroup = styled.div`
  display: flex;
  > ${Control} 
  :not(:first-child) {
    margin-left: 12px;
  }

The new line introduced changes the selector to children of Control.

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