Skip to content

Commit

Permalink
improves the click area for horizontal FormControls (checkboxes and r…
Browse files Browse the repository at this point in the history
…adios)
  • Loading branch information
mperrotti committed Oct 29, 2024
1 parent 4e03ac2 commit 6d10ae1
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 @@ -163,7 +163,7 @@ const FormControl = React.forwardRef<HTMLDivElement, FormControlProps>(
</Box>
)}
{!slots.label?.props.visuallyHidden || slots.caption ? (
<Box display="flex" flexDirection="column" ml={2}>
<Box display="flex" flexDirection="column" sx={{'> label': {paddingLeft: 'var(--stack-gap-condensed)'}}}>
{slots.label}
{slots.caption}
</Box>
Expand Down

0 comments on commit 6d10ae1

Please sign in to comment.