Skip to content

Commit

Permalink
Merge pull request #167 from awell-health/form-section-fix
Browse files Browse the repository at this point in the history
Fix gap on form section component
  • Loading branch information
skrobek authored Jan 2, 2025
2 parents eadf761 + 63f071d commit ac976fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@awell-health/design-system",
"version": "0.12.22",
"version": "0.12.23",
"type": "module",
"files": [
"dist"
Expand Down
6 changes: 4 additions & 2 deletions src/components/ui/form/form-section/FormSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ interface Props {
export const FormSection: FC<Props> = ({ children, title, hint = null }) => {
return (
<div className='py-6 flex flex-col gap-2'>
<h5 className='text-lg font-medium leading-5 text-neutral-dark-800'>{title}</h5>
{hint !== null && <div className='text-gray-500'>{hint}</div>}
<div className='flex flex-col gap-1'>
<h5 className='text-lg font-medium leading-5 text-neutral-dark-800'>{title}</h5>
{hint !== null && <div className='text-gray-500'>{hint}</div>}
</div>
<div className='mt-2'>{children}</div>
</div>
);
Expand Down

0 comments on commit ac976fb

Please sign in to comment.