Skip to content

Commit

Permalink
VUU80: Give dialog body padding responsibility to Dialog component
Browse files Browse the repository at this point in the history
  • Loading branch information
cfisher-scottlogic committed Nov 9, 2023
1 parent 1580365 commit 03fb3cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions vuu-ui/packages/vuu-popups/src/dialog/Dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
width: var(--vuuDialog-width, fit-content);
}

.vuuDialog-body {
padding-top: 16px;
}

2 changes: 1 addition & 1 deletion vuu-ui/packages/vuu-popups/src/dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const Dialog = ({
onClose={close}
title={title}
/>
{children}
<div className={`${classBase}-body`}>{children}</div>
</div>
</Scrim>
</Portal>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
display: flex;
align-items: flex-start;
gap: 32px;
padding-top: 16px;
padding-bottom: 16px;
}

.saveLayoutPanel-formContainer {
Expand Down Expand Up @@ -85,7 +83,7 @@
justify-content: flex-end;
align-items: flex-start;
align-self: stretch;
padding-top: 8px;
padding-top: 24px;
gap: 8px;
}

Expand Down

0 comments on commit 03fb3cd

Please sign in to comment.