Skip to content

Commit

Permalink
fix(Modal): Fixed bottom padding on the Modal header (#1175)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-cedrone-cengage authored and silvalaura committed Sep 18, 2024
1 parent 32909a2 commit ad13cde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fix-modalPadding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-magma-dom': patch
---

fix(Modal): Fixed bottom padding on the Modal header.
4 changes: 2 additions & 2 deletions packages/react-magma-dom/src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export const Modal = React.forwardRef<HTMLDivElement, ModalProps>(
theme={theme}
>
{header && (
<ModalWrapper theme={theme}>
<ModalHeader theme={theme}>
{header && (
<H1
id={headingId}
Expand All @@ -415,7 +415,7 @@ export const Modal = React.forwardRef<HTMLDivElement, ModalProps>(
{header}
</H1>
)}
</ModalWrapper>
</ModalHeader>
)}
<ModalWrapper ref={bodyRef} theme={theme}>
{children}
Expand Down

0 comments on commit ad13cde

Please sign in to comment.