We have a rather large project, with almost all of our CSS inside components. We need to generate RTL styles for the widget, and have attempted to use postcss-rtl. When we've attempted to do so, the [dir] attribute prefix that postcss-rtl adds is being suffixed with the _ngcontent... selector. We need to stop this so that the CSS applies to the html as expected.
// Current output
[dir][_ngcontent-c30] .total-deposit_value[_ngcontent-c30] {
  margin-top: 5px;
}
// Expected output
[dir] .total-deposit_value[_ngcontent-c30] {
  margin-top: 5px;
}
We're simple importing postcss-rtl into our webpack config, and calling it at the bottom of our postcssImports().
I'm not entirely sure how else we can approach this, without turning setting ViewEncapsulation.None, which would cause CSS conflicts.
Any help would be greatly appreciated!