Support for unsaved changes in `s-modal` (shake footer action on close)

Hi everyone,

I’m using Shopify Polaris Web Components and working with the <s-modal> component for a modal form.

Right now, if the form inside the modal is dirty and the user tries to close the modal, there doesn’t seem to be any built-in way to show unsaved changes functionality (e.g., shake the footer action or prompt the user before closing).

Is there any plan to support this behavior in s-modal in the future? Or is there a recommended workaround for handling unsaved changes within modals?

Thanks!

Reference: