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

Fixed flipping of the nested rules and supports queries #21

Conversation

Andarist
Copy link

@Andarist Andarist commented Dec 3, 2020

@@ -3,7 +3,7 @@ import { compile, middleware, prefixer, serialize, stringify } from 'stylis';
import stylisRtlPlugin from './stylis-rtl';

const stylis = (css, extraPlugins = []) =>
serialize(compile(css), middleware([stylisRtlPlugin, ...extraPlugins, stringify]));
serialize(compile(css), middleware([...extraPlugins, stylisRtlPlugin, stringify]));
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requiring this order for the prefixer plugin is unfortunate - but this order makes IMHO more sense (for the prefixer within extraPlugins), let's just do prefixing first which can insert new nodes (sort of) and then do the flipping

You could try to handle this for the other order as well, but I personally have no energy for it so this is what I'm proposing. It can be seen as a breaking change though - so u need to decide how to best handle this.

@chenbolan
Copy link

Hi @Andarist ,I also encountered the same problem as issue emotion-js/emotion#2156. May I know when this pr can be merged?

@Andarist
Copy link
Author

Andarist commented Feb 4, 2021

@chenbolan im not a maintainer of this package. Im sure that whenever @probablyup has a chance to look at it he will. OSS is a volunteer work - for the time being you can use my fork.

@oliviertassinari
Copy link

oliviertassinari commented Feb 8, 2021

The PR fixes #22 too.

@Andarist
Copy link
Author

Andarist commented Feb 9, 2021

@oliviertassinari could you check if the newly added tests cover the #22 situation - or should some tests be added here to avoid possible regressions?

@oliviertassinari
Copy link

The exisiting test seems good enough.

@mkmule
Copy link

mkmule commented Mar 10, 2021

Any ideas when this PR will be released under a new version?

Copy link

@quantizor quantizor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

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

Successfully merging this pull request may close these issues.

CSS properties defined in class selectors are not being converted when using the stylis-plugin-rtl
5 participants