Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Examples:
Now, based on my example, the obvious choice is to use
:dir()pseudo class:However, at Canva, the
:dir()pseudo class is NOT available in all browsers we support (e.g. we support Chrome versions as old as v89). What is the recommended approach for handling this?I initially thought we could use the postcss-dir-pseudo-class plugin to post process the stylex generated CSS however I'm not confident that this will correctly handle cases where nested HTML elements contain
dirattributes with different values:Asides
postcss-dir-pseudo-classshould not break stylex specificity assumptions/correctness:Beta Was this translation helpful? Give feedback.
All reactions