Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 94a7f59

Browse files
chrisirhcpkozlowski-opensource
authored andcommitted
fix(modal): backdrop z-index when stacking modals
Previously, backdrop wouldn't go over the previous open modal when a modal is open on top of another. Fixes #1653 Closes #1654
1 parent 8c89ccb commit 94a7f59

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

template/modal/backdrop.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
<div class="modal-backdrop fade" ng-class="{in: animate}" ng-style="{'z-index': 1040 + index*10}"></div>
1+
<div class="modal-backdrop fade"
2+
ng-class="{in: animate}"
3+
ng-style="{'z-index': 1040 + (index && 1 || 0) + index*10}"
4+
></div>

0 commit comments

Comments
 (0)