diff --git a/UNRELEASED.md b/UNRELEASED.md index 8d028f7cbe4..5785b512041 100644 --- a/UNRELEASED.md +++ b/UNRELEASED.md @@ -10,6 +10,8 @@ Use [the changelog guidelines](/documentation/Versioning%20and%20changelog.md) t ### Bug fixes +- Fixed `Form` > `VisuallyHidden` markup causing excessive vertical whitespace ([#5181](https://github.com/Shopify/polaris-react/pull/5181)) + ### Documentation ### Development workflow diff --git a/src/components/Form/Form.tsx b/src/components/Form/Form.tsx index a6a9f93b7e3..67b448047b5 100644 --- a/src/components/Form/Form.tsx +++ b/src/components/Form/Form.tsx @@ -89,8 +89,8 @@ export function Form({ target={target} onSubmit={handleSubmit} > - {children} {submitMarkup} + {children} ); }