Skip to content

Commit

Permalink
fix: Add vertical margin to checkboxes with labels only
Browse files Browse the repository at this point in the history
  • Loading branch information
haideralsh committed Nov 22, 2024
1 parent aed515f commit 0f4cfa9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ const VisualCheckbox = styled.div<VisualCheckboxProps>(
borderRadius: theme.radii.small,
border: "solid 1px",
position: "relative",
marginTop: theme.space.x0_5,

"&:has(+ p)": {
marginTop: theme.space.x0_5,
marginBottom: theme.space.x0_5,
},

// checkmark
"&:before": {
content: "''",
Expand Down

0 comments on commit 0f4cfa9

Please sign in to comment.