Skip to content

Commit

Permalink
[Form] Reorder form markup to prevent VisuallyHidden bug (#5181)
Browse files Browse the repository at this point in the history
  • Loading branch information
emma-boardman committed Feb 22, 2022
1 parent fe811f7 commit 684cf8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/components/Form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ export function Form({
target={target}
onSubmit={handleSubmit}
>
{children}
{submitMarkup}
{children}
</form>
);
}
Expand Down

0 comments on commit 684cf8d

Please sign in to comment.