-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
eliminate useless dynamic classes, store reference to folded componentStyle #3236
Conversation
Published as |
This doesn't quite fix #3206 yet, just realized the selectors for composed self-references need to be based on the OG static class name... |
@@ -0,0 +1,8 @@ | |||
{ | |||
"recommendations": [ | |||
"christian-kohler.path-intellisense", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accidental change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, just decided to add it in while I was doing other stuff 😅
8aed04c
to
020b177
Compare
…tStyle 1. this effectively deduplicates a lot of redundant CSS that is generated starting with v4 2. & self-references are now correctly resolved to the folded layer they corespond to
The engines >= 8 thing hasn't been released yet, so this is not considered a breaking change.
bb8bdf7
to
094840d
Compare
@probablyup hi, i see this #2071 use for style isolate. // Comp -> .sc-a
// color: red -> .a
// color: blue -> .b
.sc-a {}
.a { color: red }
.a + .sc-a { margin-left: 10px }
.b { color: blue }
.b + .sc-a { margin-left: 10px } It is useful for me, and now how do style isolate? Has many styled-components instants in one container at my case. Thanks for your callback. |
Fixes #3206
this effectively deduplicates a lot of redundant CSS that is generated
starting with v4
& self-references are now correctly resolved to the folded layer they
correspond to