Skip to content

Commit

Permalink
feat: dialog styling (#26)
Browse files Browse the repository at this point in the history
closes #24 
- header is full width + add space between
- title is same line height as icon + font color
  • Loading branch information
e-krebs authored Oct 1, 2022
1 parent f802251 commit bb606c5
Show file tree
Hide file tree
Showing 2 changed files with 9 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": "@e-krebs/react-library",
"version": "0.0.21",
"version": "0.0.22",
"description": "A collection of components to be reused across personal projects",
"repository": "github.com/e-krebs/react-library",
"author": "Emmanuel Krebs <[email protected]>",
Expand Down
10 changes: 8 additions & 2 deletions src/Modal/ModalComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,17 @@ export const ModalComponent: ModalComponentProps = forwardRef<ModalRef, PropsWit
contentClassName
)}
>
<header {...headerProps} className={cx('flex items-center space-x-1', headerClassName)}>
<header
{...headerProps}
className={cx('flex w-full items-center justify-between space-x-8', headerClassName)}
>
<h1
{...titleProps}
id={titleId}
className={cx('m-0 grow truncate text-xl font-bold capitalize', titleClassName)}
className={cx(
'm-0 grow truncate text-xl font-bold capitalize leading-8 text-black dark:text-white',
titleClassName
)}
>
{title}
</h1>
Expand Down

1 comment on commit bb606c5

@vercel
Copy link

@vercel vercel bot commented on bb606c5 Oct 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

react-library – ./

react-library-git-main-e-krebs.vercel.app
e-krebs-react-library.vercel.app
react-library-e-krebs.vercel.app

Please sign in to comment.