styled-jsx icon indicating copy to clipboard operation
styled-jsx copied to clipboard

Editing style via DevTools breaks all styles

Open zakkor opened this issue 4 years ago • 7 comments

Do you want to request a feature or report a bug?

Report a bug, posting another issue because #513 was closed and is not getting attention anymore

What is the current behavior?

Changing styles in Chrome devtools disables all the styles, and in Firefox nothing happens

If the current behavior is a bug, please provide the steps to reproduce and possibly a minimal demo or testcase in the form of a Next.js app, CodeSandbox URL or similar

Any app using styled-jsx

What is the expected behavior?

I should be able to change the styles in devtools

Environment (include versions)

  • OS: Any
  • Browser: Chrome, Firefox
  • styled-jsx (version): 3.3.0

Did this work in previous versions?

No

zakkor avatar Sep 16 '20 06:09 zakkor

I've experienced the same issue before. I figured that it only happens when having multiple '

FelixTellmann avatar Sep 28 '20 19:09 FelixTellmann

I have the same problem, it's really annoying while developing... But I have no idea how it occurs.

theoludwig avatar Oct 03 '20 21:10 theoludwig

This is still happening.

I can repro with a component that only has style jsx element @FelixTellmann. I'm not sure if it's multiple nested versions of this?

It breaks all styles, too, not just the one you're editing, which is what makes it so frustrating

jonluca avatar Feb 09 '21 02:02 jonluca

Same here, really annoying. Any updates on this?

dangelion avatar Apr 03 '21 08:04 dangelion

Yep, have the same issue. I was trying styled-jsx on a new project, but sadly this issue is going to be too problematic to work around. Having the ability to toggle CSS properties in devtools is really essential.

darbymanning avatar Apr 23 '21 22:04 darbymanning

Same issue, any fixes around please ? :)

pixelize avatar Nov 15 '21 14:11 pixelize

Could it be because of the source-maps?

siolfyr avatar Nov 17 '21 18:11 siolfyr