Remove [dir] selectors
See original GitHub issueHello everyone! Thank for your library, but i can’t it use for now 😟 For what purpose some styles transformed to selectors with leading [dir] or [dir=ltr]? Is it possible to leave original style with appended rtl rules?
Because there is some issues, for example, i’m using MUI with build-in jss styles and rtl. So, also I use some styles from Bootstrap and at my css there is structure like this: bootstrap.css
fieldset {
border: 0
}
mui styles
.Mui-some-class-for-fieldset {
border: 1
}
so by css rules - last with more weight. Class has more weight than tag selector. All is ok aaand after postcss-rtl I have:
[dir] fieldset {...}
and .Mui-some-class-for-fieldset {}
So it breakes everything because now [dir] fieldset has more weight than mui selector. How a developer can predict all of this during develop?
I think it’s not good to reassign selector`s weights for default direction.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:30

Top Related StackOverflow Question
All fixed @fabercancio:
https://runkit.com/evilaliv3/5ec1913925d80b001b42f740 https://runkit.com/evilaliv3/5ec19191efbfa6001391bdd3 https://runkit.com/evilaliv3/5ec191bbcb578c001ea91e75
I thinks so @dzearing and i may support with retesting;
I’m experienced with testing and packaging, in the meantime we could eventually fork the project while the patch gets officially loaded in.