A modal is a pop up window that allows us to display important information to users without taking them away from the current page that they are viewing. Here are a few recommendations for best practices:

Header: This should always have a title and a Close ("X") button on the top right.
Body: The copy should be short to avoid the modal being too large and covering up the parent page.
Modals can also include text links, button form field, text areas, and select and radio buttons.

Modals | Static Modal Sass file: /sass/_modals.scss


          <div class="modal" role="dialog" tabindex="-1">
          <div class="modal-dialog" role="document">
          <div class="modal-content">
          <div class="modal-header"> 
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
          <h4 class="modal-title">Modal title</h4>
          </div>
          <div class="modal-body">
          <p>One fine body…</p>
          </div>
          <div class="modal-footer"> 
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          <button type="button" class="btn btn-primary">Save changes</button> </div>
          </div>
          </div>
          </div>

Modals | Live Modal Sass file: /sass/_modals.scss


          <!-- Large modal -->
          <button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-lg">Large
          modal</button>

          <div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
          <div class="modal-dialog modal-lg" role="document">
          <div class="modal-content">
          ...
          </div>
          </div>
          </div>

          <!-- Small modal -->
          <button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">Small
          modal</button>

          <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
          <div class="modal-dialog modal-sm" role="document">
          <div class="modal-content">
          ...
          </div>
          </div>
          </div>