S-modal not working properly in RTL (Hebrew/Arabic) layouts

I’ve encountered an issue with s-modal when using RTL (Right-to-Left) languages such as Hebrew and Arabic. The component does not behave as expected in RTL layouts, which causes layout and usability problems.

Issue Details:

The modal positioning/alignment appears incorrect in RTL mode. its covered by left side menubar. it should show on Center as its with other language.

Question:

Has anyone else experienced this issue with s-modal in RTL?
Is there a recommended fix or workaround to make it fully RTL-compatible?

Any guidance would be appreciated. Thanks!

Can you give a small reproduction? Something like forking this codepen would be great. Thanks!

https://codepen.io/afrehner/pen/pvJmQvr

Ah, we’ve reproduced internally. Looking at fixes. Thanks for reporting!

@Anthony_Frehner
any update ?

Have some patience, Anthony only replied yesterday.

@Luke @Anthony_Frehner Merchant is facing this issue. any update regarding it ? Thanks!

@Anthony_Frehner Any update regarding above issue ?
Thanks!

We have a fix up I believe; letting it soak internally for a bit before pushing an update to the CDN.

Hope this was fixed in our latest release. Let me know if it wasn’t. April 29, 2026 Updates to the Admin Polaris Library

@Anthony_Frehner , Still it is not fixed.

@Anthony_Frehner Can you Please check it again?, It is not fixed yet.

Thanks!

@Alan_G Can you please check it.
Thanks!

Hey @shat_Eng, thanks for getting back in touch. I checked this against the current Polaris CDN build, and I’m no longer able to reproduce the RTL positioning issue on my end from what I can tell

In my test with Hebrew content, the s-modal seems to be centering correctly now in both mobile-sized and desktop-sized viewports. I’m attaching a quick video showing the repro setup and result.

Could you try a hard refresh / clear cache and confirm you’re loading the current https://cdn.shopify.com/shopifycloud/polaris.js bundle? If you’re still seeing it after that, a small repro of your code would help us check whether there’s a more specific layout case still causing it, hope this helps and please let me know if I can help out further!

Thanks @Alan_G for getting back to me and checking this.

We tested it further and noticed that the issue only occurs inside the Shopify ecosystem environment. When running the app locally, the modal positions correctly in RTL.

As highlighted in the screenshot (orange box), it looks like the CSS transform/position calculation is incorrect in the embedded Shopify context. The modal container still appears to be applying -50%, which is causing the positioning issue in RTL layouts.

Hope this helps narrow it down. Please let me know if you need any additional details or another repro from our side.

No worries @shat_Eng - thanks for confirming. I believe I was able to replicate this. I’ll do some further digging into this and reach out to some folks internally. I’ll be in touch as soon as I have more info to share :slight_smile:

Hey @shat_Eng - we’re working on a fix for this, I’ll let you know as soon as I see that it’s deployed, but it should be relatively shortly

Hi @Alan_G , any news ?

Thanks!

Hey @shat_Eng - thanks for checking back in.

I dug into this again, and I don’t have an update to share, but I’ll loop back here once I have confirmation that the fix has shipped and I’ve retested it on my end. It does look like some work has been done internally, but I definitely get that this isn’t ideal when it’s affecting an RTL merchant-facing flow.

I’ll keep you in the loop here.

Hey @shat_Eng - I was able to touch base internally on this for you and I can confirm we’re still working on this. I’ll keep you in the loop here. There has been some work done, but still can’t say exactly when this will be deployed live, but I will update you as soon as I see that it is. Thanks again for your patience on this :slight_smile: