mirror of
https://github.com/picocss/pico.git
synced 2025-04-22 09:26:14 -04:00
docs: Edit disclaimer about modal utility classes
This commit is contained in:
parent
5776890352
commit
58edd9f24b
2 changed files with 3 additions and 7 deletions
|
@ -70,7 +70,6 @@
|
|||
</article>
|
||||
</dialog>
|
||||
|
||||
|
||||
<pre><code><<b>dialog</b> <i>open</i>>
|
||||
<<b>article</b>>
|
||||
<<b>h3</b>>Confirm your action!</<b>h3</b>>
|
||||
|
@ -139,9 +138,7 @@
|
|||
</article>
|
||||
|
||||
<p>Pico does not include JavaScript code. You will need to implement your JS to interact with modals.</p>
|
||||
|
||||
<p>As a starting point, you can look at the JavaScript used in this documentation: <a href="https://github.com/picocss/pico/blob/master/docs/js/modal.js">js/modal.js</a>.</p>
|
||||
|
||||
<p>To make a modal appear, add the <code><i>open</i></code> attribute to the <code><<b>dialog</b></u>></code> container.</p>
|
||||
|
||||
<pre><code><em><!-- Open modal--></em>
|
||||
|
@ -160,9 +157,8 @@
|
|||
</code></pre>
|
||||
|
||||
<h2>Utilities</h2>
|
||||
|
||||
<p>Modals come with 3 utility classes. These classes are not available on the <a href="https://picocss.com/docs/classless.html">class-less version</a>.</p>
|
||||
|
||||
<p>Modals come with 3 utility classes.</p>
|
||||
<p>ℹ️ These classes are not available in the <a href="classless.html">class-less version</a>.</p>
|
||||
<p><code>.modal-is-open</code> prevents any scrolling and interactions below the modal.</p>
|
||||
|
||||
<pre><code><em><!doctype html></em>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue