Skip to content

Commit

Permalink
Add top-padding for the Dialog Body to move closer to the React compo…
Browse files Browse the repository at this point in the history
…nent and avoid it being glued to the divider
  • Loading branch information
HDinger committed Aug 30, 2024
1 parent 6348ede commit d3e7ec9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/slow-impalas-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/view-components': patch
---

Add top spacing to Dialog::Body to avoid it being glued to the divider
5 changes: 0 additions & 5 deletions app/components/primer/alpha/dialog.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,6 @@ dialog.Overlay:not([open]) {
&.Overlay-header--divided {
padding-bottom: var(--stack-padding-condensed);
box-shadow: inset 0 calc(var(--borderWidth-thin) * -1) var(--borderColor-default);

& + .Overlay-body {
padding-top: var(--stack-padding-normal);
}
}

&.Overlay-header--large {
Expand Down Expand Up @@ -272,7 +268,6 @@ dialog.Overlay:not([open]) {
/* generic body content slot */
.Overlay-body {
padding: var(--stack-padding-normal);
padding-top: 0;
overflow-y: auto;
scrollbar-width: thin;
font-size: var(--text-body-size-medium);
Expand Down

0 comments on commit d3e7ec9

Please sign in to comment.