Skip to content

Commit

Permalink
fix: DETAILS example missing SUMMARY (mdn#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni authored Jan 8, 2021
1 parent b3d3f94 commit 5728fa1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions files/en-us/mdn/guidelines/css_style_guide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,16 @@ <h3 id="details"><code>details</code></h3>

<p>A <code>&lt;details&gt;</code> element can be wrapped around a block of content to hide that content and instead display a "▶︎ Details" link that can be clicked to expand/collapse the content contained within.</p>

<details>
<details open>
<summary>
<h4 id="Example_syntax_9">Example syntax</h4>

</summary>
<p>This is an example syntax section for {{HTMLElement("details")}} that was hidden with {{HTMLElement("details")}}. Ooooooh, how meta.</p>


<pre class="brush: html; notranslate">&lt;details&gt;
&lt;summary&gt;
&lt;h4&gt;Example syntax&lt;/h4&gt;
&lt;/summary&gt;
&lt;p&gt;This is an example syntax section for &lt;code&gt;.detail&lt;/code&gt; that was hidden with &lt;code&gt;.detail&lt;/code&gt;. Ooooooh, how meta.&lt;/p&gt;
&lt;/details&gt;</pre>
</details>
Expand Down

0 comments on commit 5728fa1

Please sign in to comment.