Skip to content

Commit 85b9261

Browse files
committed
lets the centered modal have any height
1 parent 0ff7231 commit 85b9261

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/4.0/components/modal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ When modals become too long for the user's viewport or device, they scroll indep
210210

211211
### Vertically centered
212212

213-
Add `.modal-dialog-centered` to `.modal-dialog` to vertically center the modal. **Do not use this with long modals**—it will overflow the viewport and potentially hide parts of your modal.
213+
Add `.modal-dialog-centered` to `.modal-dialog` to vertically center the modal.
214214

215215
<div id="exampleModalCenter" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
216216
<div class="modal-dialog modal-dialog-centered" role="document">

scss/_modal.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
.modal-dialog-centered {
5454
display: flex;
5555
align-items: center;
56-
height: 100%;
56+
min-height: 100%;
5757
margin-top: 0;
5858
margin-bottom: 0;
5959
}

0 commit comments

Comments
 (0)