1
0
mirror of https://github.com/kognise/water.css.git synced 2025-08-30 08:20:39 +02:00

feat: Add <dialog> support

This commit is contained in:
Duy K. Bui
2020-10-02 13:08:57 -04:00
parent e5306ff96e
commit f89b85b65e
4 changed files with 53 additions and 1 deletions

View File

@@ -278,6 +278,21 @@
<p>Lorem ipsum dolor sit blah blah.</p>
</details>
<p>The dialog (form, and menu) tag</p>
<button type='button' id='dialog-trigger'>Show me the dialog!</button>
<span id='dialog-result'></span>
<dialog id='dialog'>
<header>This is a sample dialog</header>
<form method="dialog">
<p>What is your favorite pet animal?</p>
<menu>
<button value="feline">Cats</button>
<button value="canine">Dogs</button>
<button value="other">Others</button>
</menu>
</form>
</dialog>
<h3 id="typography">Typography</h3>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque dictum hendrerit velit, quis