docs: Edit disclaimer about modal utility classes

This commit is contained in:
Lucas Larroche 2022-03-13 15:18:56 +07:00
parent 5776890352
commit 58edd9f24b
2 changed files with 3 additions and 7 deletions

View file

@ -70,7 +70,6 @@
</article>
</dialog>
<pre><code>&lt;<b>dialog</b> <i>open</i>&gt;
&lt;<b>article</b>&gt;
&lt;<b>h3</b>&gt;Confirm your action!&lt;/<b>h3</b>&gt;
@ -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>&lt;<b>dialog</b></u>&gt;</code> container.</p>
<pre><code><em>&lt;!-- Open modal--&gt;</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>&nbsp;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>&lt;!doctype html&gt;</em>