@@ -39,7 +39,7 @@ There are some caveats regarding using modals on mobile devices. [See our browse
...
@@ -39,7 +39,7 @@ There are some caveats regarding using modals on mobile devices. [See our browse
### Static example
### Static example
A rendered modal with header, body, and set of actions in the footer.</p>
A rendered modal with header, body, and set of actions in the footer.
<divclass="bd-example bd-example-modal">
<divclass="bd-example bd-example-modal">
<divclass="modal">
<divclass="modal">
...
@@ -172,7 +172,7 @@ Toggle a modal via JavaScript by clicking the button below. It will slide down a
...
@@ -172,7 +172,7 @@ Toggle a modal via JavaScript by clicking the button below. It will slide down a
{% callout warning %}
{% callout warning %}
#### Make modals accessible
#### Make modals accessible
Be sure to add `role="dialog"` and `aria-labelledby="..."``, referencing the modal title, to `.modal`, and `role="document"` to the `.modal-dialog` itself.
Be sure to add `role="dialog"` and `aria-labelledby="..."`, referencing the modal title, to `.modal`, and `role="document"` to the `.modal-dialog` itself.
Additionally, you may give a description of your modal dialog with `aria-describedby` on `.modal`.
Additionally, you may give a description of your modal dialog with `aria-describedby` on `.modal`.
{% endcallout %}
{% endcallout %}
...
@@ -264,7 +264,7 @@ For modals that simply appear rather than fade in to view, remove the `.fade` cl
...
@@ -264,7 +264,7 @@ For modals that simply appear rather than fade in to view, remove the `.fade` cl
## Using the grid system
## Using the grid system
To take advantage of the Bootstrap grid system within a modal, just nest `.container-fluid within the `.modal-body` and then use the normal grid system classes within this container.
To take advantage of the Bootstrap grid system within a modal, just nest `.container-fluid` within the `.modal-body` and then use the normal grid system classes within this container.