New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Css variable in styled-components breaks because of the extra space in a template string. #7207
Comments
#6794 should be able to fix this |
[prettier #7207](prettier/prettier#7207)
[prettier #7207](prettier/prettier#7207)
fixed by #7883 |
@glandre The bug reported in this issue has been fixed. I'm not able to reproduce it with 2.0.5. If you can reproduce your problem on the Playground, please use the Report issue button there to open a new bug report. |
@thorn0, thank you for your reply. Maybe there's something else in my configuration that is getting in the way... One point to notice is that I'm using TypeScript. Take a look at this Codesandbox: https://codesandbox.io/s/elastic-colden-kvyzm?file=/src/App.tsx Notice the extra space after Let me know if it's just some missing configuration, or if I should go ahead and open a new issue. Thank you again for your help. |
Great! |
Prettier 1.19.1
Playground link
Input:
Output:
Expected behavior:
var(--${color})
to be without a space after -- as it breaks the css.Any way to work around or disable it?
The text was updated successfully, but these errors were encountered: