Unverified Commit 905b1b11 authored by Kyle Tsang's avatar Kyle Tsang Committed by GitHub
Browse files

docs(Modal): Add xxl fullscreen example (#31583)


* docs(Modal): Add xxl fullscreen example

* Update modal.md

Co-authored-by: default avatarXhmikosR <xhmikosr@gmail.com>
parent 0cb880c7
1 merge request!31948Examples/Floating-labels: fix bad behavior with autofill
Showing with 22 additions and 0 deletions
+22 -0
......@@ -683,6 +683,10 @@ Another override is the option to pop up a modal that covers the user viewport,
<td><code>.modal-fullscreen-xl-down</code></td>
<td>Below <code>1200px</code></td>
</tr>
<tr>
<td><code>.modal-fullscreen-xxl-down</code></td>
<td>Below <code>1400px</code></td>
</tr>
</tbody>
</table>
......@@ -692,6 +696,7 @@ Another override is the option to pop up a modal that covers the user viewport,
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalFullscreenMd">Full screen below md</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalFullscreenLg">Full screen below lg</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalFullscreenXl">Full screen below xl</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalFullscreenXxl">Full screen below xxl</button>
</div>
{{< highlight html >}}
......@@ -803,6 +808,23 @@ Another override is the option to pop up a modal that covers the user viewport,
</div>
</div>
<div class="modal fade" id="exampleModalFullscreenXxl" tabindex="-1" aria-labelledby="exampleModalFullscreenXxlLabel" aria-hidden="true">
<div class="modal-dialog modal-fullscreen-xxl-down">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title h4" id="exampleModalFullscreenXxlLabel">Full screen below xxl</h5>
<button type="button" class="btn-close" data-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
## Usage
The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also adds `.modal-open` to the `<body>` to override default scrolling behavior and generates a `.modal-backdrop` to provide a click area for dismissing shown modals when clicking outside the modal.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment