-
-
Notifications
You must be signed in to change notification settings - Fork 837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More resilient directionality checks #2189
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thanks for the quick fix! |
we can confirm the fix is working for us. |
@@ -259,7 +259,7 @@ export class SubmenuController implements ReactiveController { | |||
} | |||
|
|||
renderSubmenu() { | |||
const isRtl = this.host.matches(':dir(rtl)'); | |||
const isRtl = getComputedStyle(this.host).direction === 'rtl'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason these don't do this.host.localize.dir()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The localize
property is private and this only occurs once when the submenu shows, so a reflow won't be problematic. We could consider exposing this.localize
as public properties, but I didn't want to commit to that without a discussion first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷 fine with me
…o rtl-for-older-browsers
…o rtl-for-older-browsers
Any plans to get this released? |
I'll get a Shoelace release out most likely tomorrow morning. |
Thank you 😊 |
fixes #2188