Skip to content

Commit

Permalink
💄 style: Update Form
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Apr 29, 2024
1 parent 534fb4a commit 5ef398e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Form/components/FormGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const useStyles = createStyles(({ css, cx, token, isDarkMode, responsive,
}
.${prefixCls}-collapse-content {
background: transparent;
border-color: ${token.colorFillSecondary};
}
Expand Down
2 changes: 1 addition & 1 deletion src/Form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const FormParent = forwardRef<FormInstance, FormProps>(

return (
<AntForm
className={cx(styles.form, className)}
className={cx(styles.form, variant === 'pure' && styles.pure, className)}
colon={false}
form={form}
layout={'horizontal'}
Expand Down
3 changes: 3 additions & 0 deletions src/Form/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,7 @@ export const useStyles = createStyles(({ css, token, prefixCls, responsive }) =>
border-radius: ${token.borderRadius}px !important;
}
`,
pure: css`
gap: 64px;
`,
}));

0 comments on commit 5ef398e

Please sign in to comment.