Skip to content

Commit

Permalink
lets the centered modal have any height
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgalante committed Nov 16, 2017
1 parent 0ff7231 commit 85b9261
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/4.0/components/modal.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ When modals become too long for the user's viewport or device, they scroll indep

### Vertically centered

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.
Add `.modal-dialog-centered` to `.modal-dialog` to vertically center the modal.

<div id="exampleModalCenter" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
Expand Down
2 changes: 1 addition & 1 deletion scss/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
.modal-dialog-centered {
display: flex;
align-items: center;
height: 100%;
min-height: 100%;
margin-top: 0;
margin-bottom: 0;
}
Expand Down

0 comments on commit 85b9261

Please sign in to comment.