Skip to content

Commit

Permalink
move padding from just 'label' to all children
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrotti committed Nov 22, 2024
1 parent 905a10a commit 1574716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/FormControl/FormControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const FormControl = React.forwardRef<HTMLDivElement, FormControlProps>(
</Box>
)}
{!slots.label?.props.visuallyHidden || slots.caption ? (
<Box display="flex" flexDirection="column" sx={{'> label': {paddingLeft: 'var(--stack-gap-condensed)'}}}>
<Box display="flex" flexDirection="column" sx={{'> *': {paddingLeft: 'var(--stack-gap-condensed)'}}}>
{slots.label}
{slots.caption}
</Box>
Expand Down

0 comments on commit 1574716

Please sign in to comment.