Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
20 lines
393 B
Markdown
20 lines
393 B
Markdown
#### Preserve spaces between CSS words and embedded expression (#17398 by @sosukesuzuki)
|
|
|
|
<!-- prettier-ignore -->
|
|
```jsx
|
|
// Input
|
|
const Heading = styled.h1`
|
|
font-size: var(--font-size-h${level});
|
|
`;
|
|
|
|
// Prettier stable
|
|
const Heading = styled.h1`
|
|
font-size: var(--font-size-h ${level});
|
|
`;
|
|
|
|
// Prettier main
|
|
const Heading = styled.h1`
|
|
font-size: var(--font-size-h${level});
|
|
`;
|
|
```
|