Skip to content

Commit 6d6b58a

Browse files
fix(mantine, input): only add margin top if there's a title or description (#4048)
1 parent 19f03a7 commit 6d6b58a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/mantine/src/theme/Theme.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,10 @@ export const plasmaTheme: MantineThemeOverride = createTheme({
221221
}
222222
return InputClasses;
223223
},
224-
vars: (theme) => ({
224+
vars: (theme, props) => ({
225225
wrapper: {
226-
'--input-margin-top': theme.spacing.xxs,
226+
'--input-margin-top':
227+
props.wrapperProps?.label || props.wrapperProps?.description ? theme.spacing.xxs : undefined,
227228
},
228229
}),
229230
}),

0 commit comments

Comments
 (0)