Skip to content

Commit 402872a

Browse files
committed
Added the dialog element
1 parent 7eb8171 commit 402872a

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

partials/section.interactive.hbs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,18 @@
1010
<h4>Notes:</h4>
1111
<p>
1212
<small>The <code>details</code> element is currently not supported by Microsoft Edge or Internet Explorer. These browsers will <a rel="external noopener" href="https://css-tricks.com/quick-reminder-that-details-summary-is-the-easiest-way-ever-to-make-an-accordion/">display the content in an opened state</a>, as if the <code>open</code> attribute was applied.</small>
13-
</p>
14-
<!-- End of #subsection__details -->
13+
</p><!-- End of #subsection__details -->
1514

15+
<h3 id="subsection__details">Dialog</h3><!-- Start of #subsection__details -->
16+
<dialog id="dialog">
17+
<p>This is dialog content.</p>
18+
<button type="button">
19+
Close
20+
</button>
21+
</dialog>
1622

23+
<h4>Notes:</h4>
24+
<p>
25+
<small>The <code>dialog</code>'s interactivity needs to be controlled with JavaScript.</small>
26+
</p><!-- End of #subsection__details -->
1727
</section><!-- End of #section__interactive -->

0 commit comments

Comments
 (0)