Skip to content

Commit

Permalink
add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Mar 26, 2020
1 parent 0f30128 commit 0ae6803
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions changelog_unreleased/javascript/pr-7883.md
@@ -0,0 +1,28 @@
#### Fix regressions in styled-components template literals ([#7883](https://github.com/prettier/prettier/pull/7883) by [@thorn0](https://github.com/thorn0))

<!-- prettier-ignore -->
```js
// Input
const Icon = styled.div`
background: var(--${background});
${Link}:not(:first-child) {
fill: rebeccapurple;
}
`;

// Prettier stable
const Icon = styled.div`
background: var(-- ${background});
${Link}:not (:first-child) {
fill: rebeccapurple;
}
`;

// Prettier master
const Icon = styled.div`
background: var(--${background});
${Link}:not(:first-child) {
fill: rebeccapurple;
}
`;
```

0 comments on commit 0ae6803

Please sign in to comment.