Closed tinynumbers closed 5 years ago
Thanks for the quick review @nvanselow - any idea the turnaround to get this into a release version?
Probably by end of day. I have to take care of a few other items on my todo list, but I'll get this tagged and out as soon as I can.
rc4 with this fix has been released to npm. https://www.npmjs.com/package/@quickbaseoss/babel-plugin-styled-components-css-namespace
This PR fixes an issue that occurs when processing CSS that includes psuedo-classes that have embedded template literal expressions.
The PostCSS processing pulls the pseudo-classes out of the main style block into blocks following. This can lead to a situation where the expressions are put back into the CSS in the wrong order.
Example:
...will wind up as...
The fix tracks the expression sequence by including an index in the "fake expression" placeholder. Those indices are then used to make sure the expressions are re-inserted in the correct sequence in the final CSS template literal.