Repository navigation
fix(rtl): respect dir of ancestor elements throughout components - #31459
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dir setting of ancestor elements throughout components
dir setting of ancestor elements throughout componentsdir of ancestor elements throughout components
ShaneK
left a comment
There was a problem hiding this comment.
Nice sweep of this! Just a few comments inline, though I'd want the test coverage added before it goes in.
Co-authored-by: Shane <shane.king@outsystems.com>
ShaneK
left a comment
There was a problem hiding this comment.
Thanks for adding the tests and taking the suggestions! Most of them pass on main too though, so they aren't covering the change yet, and CI is red on the new popover one. I've left comments inline.
ShaneK
left a comment
There was a problem hiding this comment.
Really close! Just a few more comments inline.
ShaneK
left a comment
There was a problem hiding this comment.
Looks great, thanks for sticking with this one! Just need the datetime test fixed so lint passes. 🚀
Co-authored-by: Shane <shane.king@outsystems.com>
brandyscarney
left a comment
There was a problem hiding this comment.
Looking good! Requested changes for the popover direction regression on popover.tsx. The other comments are non-blocking.
Issue number: internal
What is the current behavior?
Some components check
document.dir === 'rtl'to determine whether to be left-to-right or right-to-left.What is the new behavior?
isRTL(this.el). This way, any element in the parent chain can define RTL, not just the root document element.isRTL.Does this introduce a breaking change?