Styled-components and custom css properties #5614
Labels
area:multiparser
Issues with printing one language inside another, like CSS-in-JS
lang:css/scss/less
Issues affecting CSS, Less or SCSS
lang:javascript
Issues affecting JS
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
priority:high
Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 1.15.3
Playground link
Input:
Output:
Expected behavior:
Prettier should not add a space between the custom property name prefix
--
and the template literal placeholder${props => props.color}
. It causes an invalid property value and the style is not applied.The text was updated successfully, but these errors were encountered: