Proof of concept for rtlcss alternative to cssjanus#92
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/itsjonq/g2/7q7pe92l0 |
|
Holy smokes! It works 🎉 !!! @saramarcondes I'm 💯 down with this solution. If you're okay with it, feel free to tidy this PR up and we'll get it merged 🙌 |
|
Oh dang. I just noticed the browser version of Which is about 20kb gzipped 😱 That feels really heavy 😅 CSSJanus comes in at 1.7kb gzipped: |
|
From what I gather... the only concern with this approach would be the bundle size (which is a valid concern). I poked around, and it doesn't look like It looks like this may be our only option for now (besides re-writing CSSJanus). Because this RTL plugin is a tiny module of With that said, I'm okay moving forward with this approach. @saramarcondes What do you think :) |
|
@ItsJonQ Sounds good to me! |
ItsJonQ
left a comment
There was a problem hiding this comment.
🚀 from me!!! Thank you @saramarcondes 🙏

Testing instructions
Boot up storybook and find the
htmlelement. Add adir="rtl"attribute to it and verify that RTL support is working as expected (compare against usingcssjanusto check that everything looks the same.