]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Show both html examples 9908/head
authorBrock Duncan <bduncan@tkg.com>
Wed, 26 Apr 2017 19:56:24 +0000 (15:56 -0400)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2017 19:56:24 +0000 (15:56 -0400)
I think I have it here, I also think I made this way more difficult than it needed to be.

docs/pages/responsive-accordion-tabs.md

index 3f5956bc3dec8157def39e670d2c96e7e3e57022..2a942724578499dec5c42bf4273673badbfd8de1 100644 (file)
@@ -28,23 +28,6 @@ Accordion content should also have an ID, or the # of the href should be specifi
   <!-- ... -->
 </ul>
 ```
-
-<div class="secondary callout">
-  <p>The accordion/tabs values can be in any order.</p>
-</div>
-
-```html
-<ul class="tabs" data-responsive-accordion-tabs="tabs medium-accordion large-tabs">
-  <li class="accordion-item is-active" data-accordion-item>
-    <a href="#" class="accordion-title">Accordion 1</a>
-    <div class="accordion-content" data-tab-content>
-      I would start in the open state, due to using the `is-active` state class.
-    </div>
-  </li>
-  <!-- ... -->
-</ul>
-```
-
 <div class="secondary callout">
   <p>Once you put it all together, here's what you get!<br>Scale your browser down to see the toggle happen.<br>I am an `Accordion on small and large` but I am `Tabs on medium`</p>
 </div>
@@ -73,9 +56,22 @@ Accordion content should also have an ID, or the # of the href should be specifi
   </li>
 </ul>
 
+<div class="secondary callout">
+  <p>The accordion/tabs values can be in any order.</p>
+</div>
+
 Tabs HTML Markup
 
 ```html
+<ul class="tabs" data-responsive-accordion-tabs="tabs medium-accordion large-tabs" id="example-tabs">
+  <li class="tabs-title is-active"><a href="#panel1" aria-selected="true">Tab 1</a></li>
+  <li class="tabs-title"><a href="#panel2">Tab 2</a></li>
+  <li class="tabs-title"><a href="#panel3">Tab 3</a></li>
+  <li class="tabs-title"><a href="#panel4">Tab 4</a></li>
+  <li class="tabs-title"><a href="#panel5">Tab 5</a></li>
+  <li class="tabs-title"><a href="#panel6">Tab 6</a></li>
+</ul>
+
 <div class="tabs-content" data-tabs-content="example-tabs">
   <div class="tabs-panel is-active" id="panel1">
     <p>Vivamus hendrerit arcu sed erat molestie vehicula. Sed auctor neque eu tellus rhoncus ut eleifend nibh porttitor. Ut in nulla enim. Phasellus molestie magna non est bibendum non venenatis nisl tempor. Suspendisse dictum feugiat nisl ut dapibus.</p>
@@ -85,7 +81,6 @@ Tabs HTML Markup
   </div>
 </div>
 ```
-
 <div class="secondary callout">
   <p>Once you put it all together, here's what you get!<br>Scale your browser down to see the toggle happen.<br>I am `Tabs on small and large` and `Accordion on medium`</p>
 </div>