Support option to generate a RTL or a LTR version only, rather than combined
bencripps opened this issue · comments
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?
Not sure it's necessary. You can do it directly via rtlcss
used by this project
@vkalinichev how is this possible using rtlcss?
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.
Implemented by onlyDirection
option in 1.2.1
release.