Skip to content

Commit

Permalink
feat(docs:nav-pills): remove border on tab-content on nav-pills examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Nov 5, 2019
1 parent 2ecfa98 commit a78afc6
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions site/docs/4.3/components/navs.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ Takes the basic nav from above and adds the `.nav-tabs` class to generate a tabb
{% endcapture %}
{% include example.html content=example %}

[comment]: # Boosted mod
### Nav tabs light

Nav tabs light differs only visually, with a full width bottom border and a different active state.
Expand All @@ -184,21 +185,6 @@ Nav tabs light differs only visually, with a full width bottom border and a diff
{% endcapture %}
{% include example.html content=example %}

[comment]: # Boosted mod
### Responsive Tabs

Responsive tabs allow tab layouts to be displayed as accordions on a mobile browser if the number of tabs exceeds 2. No configuration or javascript method call needed. Here is the markup:

{% capture example %}
<div class="o-tab-container" role="tablist">
<a class="o-tab-heading" href="#" id="tab1" role="tab">Tab 1</a>
<div class="o-tab-content show" id="tab-1-content" role="tabpanel">Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch</div>
<a class="o-tab-heading" href="#" id="tab2" role="tab">Tab 2</a>
<div class="o-tab-content" id="tab-2-content" role="tabpanel">Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.</div>
<a class="o-tab-heading" href="#" id="tab3" role="tab">Tab 3</a>
<div class="o-tab-content" id="tab-3-content" role="tabpanel">Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.</div>
</div>
{% endcapture %} {% include example.html content=example %}
[comment]: # End mod

### Pills
Expand Down Expand Up @@ -498,7 +484,7 @@ The tabs plugin also works with pills.
<a class="nav-link" id="pills-contact-tab" data-toggle="pill" href="#pills-contact" role="tab" aria-controls="pills-contact" aria-selected="false">Contact</a>
</li>
</ul>
<div class="tab-content" id="pills-tabContent">
<div class="tab-content border-0" id="pills-tabContent">
<div class="tab-pane fade show active" id="pills-home" role="tabpanel" aria-labelledby="pills-home-tab">...</div>
<div class="tab-pane fade" id="pills-profile" role="tabpanel" aria-labelledby="pills-profile-tab">...</div>
<div class="tab-pane fade" id="pills-contact" role="tabpanel" aria-labelledby="pills-contact-tab">...</div>
Expand All @@ -518,7 +504,7 @@ And with vertical pills.
</div>
</div>
<div class="col-9">
<div class="tab-content" id="v-pills-tabContent">
<div class="tab-content border-0" id="v-pills-tabContent">
<div class="tab-pane fade show active" id="v-pills-home" role="tabpanel" aria-labelledby="v-pills-home-tab">
<p>Cillum ad ut irure tempor velit nostrud occaecat ullamco aliqua anim Lorem sint. Veniam sint duis incididunt do esse magna mollit excepteur laborum qui. Id id reprehenderit sit est eu aliqua occaecat quis et velit excepteur laborum mollit dolore eiusmod. Ipsum dolor in occaecat commodo et voluptate minim reprehenderit mollit pariatur. Deserunt non laborum enim et cillum eu deserunt excepteur ea incididunt minim occaecat.</p>
</div>
Expand Down Expand Up @@ -557,6 +543,24 @@ And with vertical pills.
</div>
{% endhighlight %}

[comment]: # Boosted mod
### Responsive Tabs

Responsive tabs allow tab layouts to be displayed as accordions on a mobile browser if the number of tabs exceeds 2. No configuration or javascript method call needed. Here is the markup:

{% capture example %}
<div class="o-tab-container" role="tablist">
<a class="o-tab-heading" href="#" id="tab1" role="tab">Tab 1</a>
<div class="o-tab-content show" id="tab-1-content" role="tabpanel">Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch</div>
<a class="o-tab-heading" href="#" id="tab2" role="tab">Tab 2</a>
<div class="o-tab-content" id="tab-2-content" role="tabpanel">Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.</div>
<a class="o-tab-heading" href="#" id="tab3" role="tab">Tab 3</a>
<div class="o-tab-content" id="tab-3-content" role="tabpanel">Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.</div>
</div>
{% endcapture %} {% include example.html content=example %}

[comment]: # End mod

### Using data attributes

You can activate a tab or pill navigation without writing any JavaScript by simply specifying `data-toggle="tab"` or `data-toggle="pill"` on an element. Use these data attributes on `.nav-tabs` or `.nav-pills`.
Expand Down

0 comments on commit a78afc6

Please sign in to comment.