Skip to content

Modal deprecated #396

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

Open
Lazerproof opened this issue Aug 27, 2024 · 3 comments
Open

Modal deprecated #396

Lazerproof opened this issue Aug 27, 2024 · 3 comments
Labels
question Further information is requested

Comments

@Lazerproof
Copy link

Hi.

I couldn't find any information about why the Modal component is listed under the deprecated category.
Is there a specific reason for this, or is there a replacement component that we should use instead?

Thanks!

@juzser
Copy link
Member

juzser commented Aug 28, 2024

@Lazerproof We also don't know why, we're just putting modal into deprecated category to the same as Shopify structure.

As I understand and research from Shopify, they want us to use the native Modal of AppBridge library instead of manual modal of Polaris.
But seems like the AppBridge Modal has many bugs then they keep this modal in deprecated category until now.

You can try to use AppBridge Modal as in here.

@juzser juzser added the question Further information is requested label Aug 28, 2024
@Subilan
Copy link

Subilan commented Apr 25, 2025

It seems that AppBridge is Shopify-dependent and the rendering is handled by Shopify platform as stated here. Is there any way to use it like a local component? Otherwise the deprecated Modal is the only option here when building standalone apps.

I thought Polaris wasn't tightly coupled with the platform and it's totally possible to build something completely unrelated to Shopify with it. The deprecation of the Modal component only is quite confusing.

@blacklen
Copy link
Collaborator

blacklen commented Apr 26, 2025

Hi Subilan,

We still support Polaris Modal for complex cases, which can be used locally. However, for local development, we prefer to build it within Shopify Admin to utilize App Bridge.

And for the reason why Shopify has deprecated the Modal, please refer to this link for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants