Skip to content
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

Toggling comments for row #68

Open
nabati opened this issue May 7, 2019 · 0 comments
Open

Toggling comments for row #68

nabati opened this issue May 7, 2019 · 0 comments

Comments

@nabati
Copy link

nabati commented May 7, 2019

Version 1.0.7

Problem description:

Toggling a line comment on a styled component property adds //-style comments, which doesn't compile properly. Instead, the plugin should add /* */ style comments.

Currently the following

const OnText = styled(Text)`
  flex-grow: 1;
`;

becomes

const OnText = styled(Text)`
  //flex-grow: 1;
`;

and gives error

image

Instead, it should become

const OnText = styled(Text)`
  /* flex-grow: 1; */
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant