You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi so after reading the docs I understand that CSS-in-JS will not be sorted on the root level due to property interpolation. I was wondering if there was any way to override this behavior or have more control here. For example, for my use case, I only use property interpolations when I'm using a mixin. So for example something like this:
I was thinking about it recently. And I think it is possible to change plugin logic to allow sorting of properties if there is no interpolation between them. Like in your example.
I'm going to look into this in the future. But bear in mind it won't be soon. This plugin is working with PostCSS 8, but the only available CSS-in-JS parser for PostCSS works on PostCSS 7. And I doubt it will ever support PostCSS 8 due its architecture. I have plans to work on new CSS-in-JS parser, which will work with PostCSS 8. But it's not an easy task and won't be done any time soon.
hudochenkov
changed the title
CSS-in-JS Sorting
Add limited sorting support for CSS-in-JS with interpolation
Jul 10, 2021
Hi so after reading the docs I understand that CSS-in-JS will not be sorted on the root level due to property interpolation. I was wondering if there was any way to override this behavior or have more control here. For example, for my use case, I only use property interpolations when I'm using a mixin. So for example something like this:
Therefore I would like the sorting to occur but after the interpolated property. Is anything like this possible?
The text was updated successfully, but these errors were encountered: