Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 465 Bytes

File metadata and controls

21 lines (18 loc) · 465 Bytes

Fix formatting of pseudo-elements and pseudo-classes in styled-components template literals (#7842 by @thorn0)

// Input
const Foo = styled.div`
  ${media.smallDown}::before {}
`;

// Prettier stable
const Foo = styled.div`
  ${media.smallDown}: : before{
  }
`;

// Prettier master
const Foo = styled.div`
  ${media.smallDown}::before {
  }
`;