diff --git a/scss/_modal.scss b/scss/_modal.scss index 5f1429fe4bfc..494db94e7eb9 100644 --- a/scss/_modal.scss +++ b/scss/_modal.scss @@ -126,7 +126,6 @@ display: flex; flex-shrink: 0; align-items: center; - justify-content: space-between; // Put modal header elements (title and dismiss) on opposite ends padding: var(--#{$prefix}modal-header-padding); border-bottom: var(--#{$prefix}modal-header-border-width) solid var(--#{$prefix}modal-header-border-color); @include border-top-radius(var(--#{$prefix}modal-inner-border-radius)); diff --git a/scss/_offcanvas.scss b/scss/_offcanvas.scss index 04e3ce6442b9..eb2c97ab77a3 100644 --- a/scss/_offcanvas.scss +++ b/scss/_offcanvas.scss @@ -123,14 +123,11 @@ .offcanvas-header { display: flex; align-items: center; - justify-content: space-between; padding: var(--#{$prefix}offcanvas-padding-y) var(--#{$prefix}offcanvas-padding-x); .btn-close { padding: calc(var(--#{$prefix}offcanvas-padding-y) * .5) calc(var(--#{$prefix}offcanvas-padding-x) * .5); - margin-top: calc(-.5 * var(--#{$prefix}offcanvas-padding-y)); - margin-right: calc(-.5 * var(--#{$prefix}offcanvas-padding-x)); - margin-bottom: calc(-.5 * var(--#{$prefix}offcanvas-padding-y)); + margin: calc(-.5 * var(--#{$prefix}offcanvas-padding-y)) calc(-.5 * var(--#{$prefix}offcanvas-padding-x)) calc(-.5 * var(--#{$prefix}offcanvas-padding-y)) auto; } }