Skip to content

Commit

Permalink
add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Mar 23, 2020
1 parent 18afd40 commit c22e3cc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions changelog_unreleased/javascript/pr-7842.md
@@ -0,0 +1,21 @@
#### Fix formatting of pseudo-elements and pseudo-classes in styled-components template literals ([#7842](https://github.com/prettier/prettier/pull/7842) by [@thorn0](https://github.com/thorn0))

<!-- prettier-ignore -->
```jsx
// 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 {
}
`;
```

0 comments on commit c22e3cc

Please sign in to comment.