From: Patrick H. Lauke Date: Fri, 26 May 2017 16:56:37 +0000 (+0100) Subject: Add pointer-events declarations X-Git-Tag: v4.0.0-beta.2~326 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ca451ebf830ee73794b9fd165f3fdbec6781dfa;p=thirdparty%2Fbootstrap.git Add pointer-events declarations make outer `.modal-dialog` pass through events for custom click handling, counteract it for the actual `.modal-content` --- diff --git a/scss/_modal.scss b/scss/_modal.scss index 1f290557a0..a563e6ffbd 100644 --- a/scss/_modal.scss +++ b/scss/_modal.scss @@ -43,6 +43,8 @@ position: relative; width: auto; margin: $modal-dialog-margin; + // allow clicks to pass through for custom click handling to close modal + pointer-events: none; } // Actual modal @@ -50,6 +52,8 @@ position: relative; display: flex; flex-direction: column; + // counteract the pointer-events: none; in the .modal-dialog + pointer-events: auto; background-color: $modal-content-bg; background-clip: padding-box; border: $modal-content-border-width solid $modal-content-border-color;