Skip to content

Commit

Permalink
fix: fixed ModalDialog.Header sizes (#2925)
Browse files Browse the repository at this point in the history
* fix: fixed ModalDialog.Header sizes

* refactor: refactoring after review
  • Loading branch information
PKulkoRaccoonGang authored Dec 13, 2023
1 parent 8ef95bc commit 5af0b51
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions src/Modal/_ModalDialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@
max-height: none;
margin: $modal-dialog-margin;
}

.pgn__modal-header {
padding-bottom: calc(#{$modal-inner-padding} / 2);
}

.pgn__modal-body {
padding: calc(#{$modal-inner-padding} / 2) $modal-inner-padding;

&::before {
top: calc(#{$modal-inner-padding} / 2 * -1);
}
}
}

// Sizes
Expand Down Expand Up @@ -230,22 +242,6 @@

// Color Variants

.pgn__modal-default {
// Default style modals don't have a background on the header which
// ends up looking spaced too far away from the body content.
.pgn__modal-header {
padding-bottom: calc(#{$modal-inner-padding} / 2);
}

.pgn__modal-body {
padding: calc(#{$modal-inner-padding} / 2) $modal-inner-padding;

&::before {
top: calc(#{$modal-inner-padding} / 2 * -1);
}
}
}

.pgn__modal-dark {
.pgn__modal-header,
.pgn__modal-hero {
Expand All @@ -256,10 +252,6 @@
color: inherit;
}
}

.pgn__modal-header {
border-bottom: solid 1px $light;
}
}

.pgn__modal-warning .pgn__modal-header {
Expand Down

0 comments on commit 5af0b51

Please sign in to comment.