Skip to content

Commit 7eb8171

Browse files
committed
Added interactive section and the details element
1 parent 8fafe8c commit 7eb8171

File tree

3 files changed

+35
-8
lines changed

3 files changed

+35
-8
lines changed

partials/section.interactive.hbs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<section id="section__interactive" aria-labelledby="title__interactive"><!-- Start of #section__interactive -->
2+
<h2 id="title__interactive">Interactive</h2>
3+
4+
<h3 id="subsection__details">Details</h3><!-- Start of #subsection__details -->
5+
<details>
6+
<summary>What payment options do you accept?</summary>
7+
<p>We accept cash, Visa, American Express, money orders, and personal checks.</p>
8+
</details>
9+
10+
<h4>Notes:</h4>
11+
<p>
12+
<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 -->
15+
16+
17+
</section><!-- End of #section__interactive -->
Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
<nav id="section__table-of-contents" aria-labelledby="title__table-of-contents"><!-- Start of #section__table-of-contents -->
22
<h2 id="title__table-of-contents">Table of Contents</h2>
3-
<ul>
3+
4+
<ol>
45
<li><a href="#section__about">About</a></li>
56
<li><a href="#section__headings">Headings</a></li>
67
<li><a href="#section__text-level">Text-level</a>
7-
<ul>
8+
<ol>
89
<li><a href="#subsection__content">Content</a></li>
910
<li><a href="#subsection__lists">Lists</a></li>
1011
<li><a href="#subsection__links">Links</a></li>
1112
<li><a href="#subsection__code">Code</a></li>
1213
<li><a href="#subsection__symbols">Symbols</a></li>
1314
<li><a href="#subsection__emoji">Emoji</a></li>
14-
</ul>
15+
</ol>
1516
</li>
1617
<li><a href="#section__tables">Tables</a></li>
18+
<li><a href="#section__interactive">Interactive</a></li>
19+
<ol>
20+
<li><a href="#subsection__details">Details</a></li>
21+
<li><a href="#subsection__dialog">Dialog</a></li>
22+
</ol>
1723
<li><a href="#section__embedded">Embedded</a></li>
18-
<ul>
24+
<ol>
1925
<li><a href="#subsection__image">Image</a></li>
2026
<li><a href="#subsection__broken-image">Broken Image</a></li>
2127
<li><a href="#subsection__figure-with-caption">Figure with Caption</a></li>
@@ -27,9 +33,9 @@
2733
<li><a href="#subsection__video">Video</a></li>
2834
<li><a href="#subsection__object">Object</a></li>
2935
<li><a href="#subsection__canvas">Canvas</a></li>
30-
</ul>
36+
</ol>
3137
<li><a href="#section__forms">Forms</a>
32-
<ul>
38+
<ol>
3339
<li><a href="#subsection__text-input">Text Input</a></li>
3440
<li><a href="#subsection__non-text-input">Non-text Input</a></li>
3541
<li><a href="#subsection__select">Select</a></li>
@@ -39,8 +45,8 @@
3945
<li><a href="#subsection__lockup">Lockup</a></li>
4046
<li><a href="#subsection__states-and-validation">States and Validation</a></li>
4147
<li><a href="#subsection__autocomplete">Autocomplete</a></li>
42-
</ul>
48+
</ol>
4349
</li>
4450
<li><a href="#section__credit">Credit</a></li>
45-
</ul>
51+
</ol>
4652
</nav><!-- End of #section__table-of-contents -->

views/index.hbs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939

4040
<hr />
4141

42+
{{> section.interactive}}
43+
44+
<hr />
45+
4246
{{> section.embedded}}
4347

4448
<hr />

0 commit comments

Comments
 (0)