Closed evadecker closed 1 year ago
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's design system and dev experience.
wondering if this has been addressed
Issue summary
There doesn't appear to be a way to use the
primaryAction
prop on a Modal to submit a form. The PolarisButton
includes asubmit
prop for form submission; Buttons passed in as objects (ComplexAction
) do not include the ability to setsubmit
.Expected behavior
ComplexAction
—likeButton
—should acceptsubmit
so that the default styling and positioning of Modal buttons can be maintained.Actual behavior
Instead of supplying a
primaryAction
, it's necessary to useButtonGroup
andButton
within the contents ofModal
. Writing custom markup means that buttons are aligned left and do not include a dividing border with the contents of the modal, creating inconsistency.