Skip to content

Commit

Permalink
fix: fixed close button positioning in modal components (#1733)
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang authored Nov 4, 2022
1 parent c338828 commit 9d24187
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modal/_ModalDialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
.pgn__modal-close-container {
position: absolute;
z-index: 10;
top: $modal-header-padding-y;
top: $modal-close-container-top;
inset-inline-end: $modal-header-padding-y;
}

Expand Down
1 change: 1 addition & 0 deletions src/Modal/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ $modal-header-border-width: $modal-content-border-width !default;
$modal-footer-border-width: $modal-header-border-width !default;
$modal-header-padding-y: 1rem !default;
$modal-header-padding-x: 1.5rem !default;
$modal-close-container-top: .625rem !default;

// Keep this for backwards compatibility
$modal-header-padding: $modal-header-padding-y $modal-header-padding-x !default;
Expand Down

0 comments on commit 9d24187

Please sign in to comment.