Skip to content

Support option to generate a RTL or a LTR version only, rather than combined #27

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

Closed
bencripps opened this issue Jan 3, 2018 · 4 comments
Assignees

Comments

@bencripps
Copy link

It would be great if you could pass in some configuration which resulted in either LTR or RTL output -- rather than combined.

Have you thought about adding this feature?

@vkalinichev
Copy link
Owner

Not sure it's necessary. You can do it directly via rtlcss used by this project

@TsuryKnox
Copy link

@vkalinichev how is this possible using rtlcss?

@bencripps
Copy link
Author

This postcss plugin has some nice configuration that isn't (yet) supported by rtlcss -- the feature I'm looking for in particular is the skipping of classes in which [dir] is already part of the selector.

For example, using rtlcss, the following CSS:

[dir="rtl"] .thing { left: 10px }

would be rewritten as

[dir="rtl"] .thing { right: 10px }

which isn't desirable.

Using postcssrtl, this CSS go unmodifed.

@vkalinichev
Copy link
Owner

Implemented by onlyDirection option in 1.2.1 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants