Skip to content
Merged
4 changes: 2 additions & 2 deletions scss/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
background-color: $modal-content-bg;
background-clip: padding-box;
border: $modal-content-border-width solid $modal-content-border-color;
@include border-radius($border-radius-lg);
@include border-radius($modal-border-radius);
@include box-shadow($modal-content-box-shadow-xs);
// Remove focus outline from opened modal
outline: 0;
Expand Down Expand Up @@ -96,7 +96,7 @@
justify-content: space-between; // Put modal header elements (title and dismiss) on opposite ends
padding: $modal-header-padding;
border-bottom: $modal-header-border-width solid $modal-header-border-color;
@include border-top-radius($border-radius-lg);
@include border-top-radius($modal-border-radius);

.close {
padding: $modal-header-padding;
Expand Down
1 change: 1 addition & 0 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,7 @@ $modal-footer-border-color: $modal-header-border-color !default;
$modal-header-border-width: $modal-content-border-width !default;
$modal-footer-border-width: $modal-header-border-width !default;
$modal-header-padding: 1rem !default;
$modal-border-radius: $border-radius-lg !default;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @akolinski thanks a lot for this PR. I've tested it and it works.

Since this variable is affecting the .modal-content I'd move the variable up to line 776 and name it $modal-content-border-radius.


$modal-lg: 800px !default;
$modal-md: 500px !default;
Expand Down