Skip to content

Commit

Permalink
Merge pull request #32 from babylonlabs-io/remove-body-selector
Browse files Browse the repository at this point in the history
fix: dialog title
  • Loading branch information
totraev authored Nov 23, 2024
2 parents 1e543df + 3dda9fd commit 162b692
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Dialog/components/DialogHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export interface DialogHeaderProps extends DetailedHTMLProps<HTMLAttributes<HTML
}

export const DialogHeader = ({ className, children, title, onClose }: DialogHeaderProps) => (
<>
<div className={twJoin("bbn-dialog-header", className)}>
<div className={twJoin("bbn-dialog-header", className)}>
<div className="bbn-dialog-title">
<Heading variant="h5">{title}</Heading>

{Boolean(onClose) && (
Expand All @@ -27,5 +27,5 @@ export const DialogHeader = ({ className, children, title, onClose }: DialogHead
</div>

{children}
</>
</div>
);
4 changes: 4 additions & 0 deletions src/components/Dialog/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
}

&-header {
@apply b-block;
}

&-title {
@apply b-flex b-items-center b-justify-between b-gap-2;
}

Expand Down

0 comments on commit 162b692

Please sign in to comment.