Skip to content

Commit e5c0523

Browse files
authored
Merge pull request #29 from crystal-ball/bug/modal-scroll
Fix bug: modals not scrolling
2 parents a70164d + ad79074 commit e5c0523

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

styles/bootstrap/_modal.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// .modal-open - body class for killing the scroll
1+
// .no-scroll - body class for killing the scroll
22
// .modal - container to scroll within
33
// .modal-dialog - positioning shell for the actual modal
44
// .modal-content - actual modal w/ bg and corners and stuff
55

66

77
// Kill the scroll on the body
8-
.modal-open {
8+
.no-scroll {
99
overflow: hidden;
1010
}
1111

@@ -26,7 +26,7 @@
2626
// gnarly iOS Safari bug: https://bugs.webkit.org/show_bug.cgi?id=158342
2727
// See also https://github.com/twbs/bootstrap/issues/17695
2828

29-
.modal-open & {
29+
.no-scroll & {
3030
overflow-x: hidden;
3131
overflow-y: auto;
3232
}

0 commit comments

Comments
 (0)