Skip to content

Commit

Permalink
fix: FormControlLabel spacing (#3926)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjon3s authored Nov 8, 2024
1 parent dd6883a commit a0c46c9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const BasicRadio: React.FC<Props> = ({
control={<Radio variant={variant} />}
label={title}
sx={(theme) => ({
ml: theme.spacing(-1),
mb: variant === "default" ? 1 : 0,
alignItems: "flex-start",
[`& .${formControlLabelClasses.label}`]: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ const FlowStatus = () => {
<FormControlLabel
label={statusForm.values.status}
sx={{
margin: 0,
marginBottom: 0.5,
[`& .${formControlLabelClasses.label}`]: {
fontWeight: FONT_WEIGHT_BOLD,
Expand Down
7 changes: 7 additions & 0 deletions editor.planx.uk/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,13 @@ const getThemeOptions = ({
},
},
},
MuiFormControlLabel: {
styleOverrides: {
root: {
margin: 0,
},
},
},
MuiSwitch: {
styleOverrides: {
root: {
Expand Down

0 comments on commit a0c46c9

Please sign in to comment.