Skip to content

Commit

Permalink
fix(core): no top margin if no label for field
Browse files Browse the repository at this point in the history
  • Loading branch information
varl committed Apr 29, 2020
1 parent 96ab0af commit a2d0bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/Field/Field.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Field = ({
</Label>
)}

<Box marginTop={spacers.dp4}>{children}</Box>
<Box marginTop={label ? spacers.dp4 : 0}>{children}</Box>

{helpText && <Help dataTest={`${dataTest}-help`}>{helpText}</Help>}

Expand Down

0 comments on commit a2d0bad

Please sign in to comment.