@@ -195,14 +195,14 @@ Force your `.nav`'s contents to extend the full available width one of two modif
195195{% endcapture %}
196196{% include example.html content=example %}
197197
198- When using a ` <nav> ` -based navigation, be sure to include ` .nav-item ` on the anchors .
198+ When using a ` <nav> ` -based navigation, you can safely omit ` .nav-item ` as only ` .nav-link ` is required for styling ` <a> ` elements .
199199
200200{% capture example %}
201201<nav class =" nav nav-pills nav-fill " >
202- <a class =" nav-item nav- link active " href =" # " >Active</a >
203- <a class =" nav-item nav- link " href =" # " >Much longer nav link</a >
204- <a class =" nav-item nav- link " href =" # " >Link</a >
205- <a class =" nav-item nav- link disabled " href =" # " tabindex =" -1 " aria-disabled =" true " >Disabled</a >
202+ <a class =" nav-link active " href =" # " >Active</a >
203+ <a class =" nav-link " href =" # " >Much longer nav link</a >
204+ <a class =" nav-link " href =" # " >Link</a >
205+ <a class =" nav-link disabled " href =" # " tabindex =" -1 " aria-disabled =" true " >Disabled</a >
206206</nav >
207207{% endcapture %}
208208{% include example.html content=example %}
@@ -227,14 +227,14 @@ For equal-width elements, use `.nav-justified`. All horizontal space will be occ
227227{% endcapture %}
228228{% include example.html content=example %}
229229
230- Similar to the ` .nav-fill ` example using a ` <nav> ` -based navigation, be sure to include ` .nav-item ` on the anchors .
230+ Similar to the ` .nav-fill ` example using a ` <nav> ` -based navigation.
231231
232232{% capture example %}
233233<nav class =" nav nav-pills nav-justified " >
234- <a class =" nav-item nav- link active " href =" # " >Active</a >
235- <a class =" nav-item nav- link " href =" # " >Much longer nav link</a >
236- <a class =" nav-item nav- link " href =" # " >Link</a >
237- <a class =" nav-item nav- link disabled " href =" # " tabindex =" -1 " aria-disabled =" true " >Disabled</a >
234+ <a class =" nav-link active " href =" # " >Active</a >
235+ <a class =" nav-link " href =" # " >Much longer nav link</a >
236+ <a class =" nav-link " href =" # " >Link</a >
237+ <a class =" nav-link disabled " href =" # " tabindex =" -1 " aria-disabled =" true " >Disabled</a >
238238</nav >
239239
240240{% endcapture %}
@@ -376,9 +376,9 @@ To help fit your needs, this works with `<ul>`-based markup, as shown above, or
376376<div class =" bd-example bd-example-tabs " >
377377 <nav >
378378 <div class="nav nav-tabs" id="nav-tab" role="tablist">
379- <a class="nav-item nav- link active" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true">Home</a>
380- <a class="nav-item nav- link" id="nav-profile-tab" data-toggle="tab" href="#nav-profile" role="tab" aria-controls="nav-profile" aria-selected="false">Profile</a>
381- <a class="nav-item nav- link" id="nav-contact-tab" data-toggle="tab" href="#nav-contact" role="tab" aria-controls="nav-contact" aria-selected="false">Contact</a>
379+ <a class="nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true">Home</a>
380+ <a class="nav-link" id="nav-profile-tab" data-toggle="tab" href="#nav-profile" role="tab" aria-controls="nav-profile" aria-selected="false">Profile</a>
381+ <a class="nav-link" id="nav-contact-tab" data-toggle="tab" href="#nav-contact" role="tab" aria-controls="nav-contact" aria-selected="false">Contact</a>
382382 </div>
383383 </nav >
384384 <div class =" tab-content " id =" nav-tabContent " >
@@ -397,9 +397,9 @@ To help fit your needs, this works with `<ul>`-based markup, as shown above, or
397397{% highlight html %}
398398<nav >
399399 <div class =" nav nav-tabs " id =" nav-tab " role =" tablist " >
400- <a class="nav-item nav- link active" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true">Home</a>
401- <a class="nav-item nav- link" id="nav-profile-tab" data-toggle="tab" href="#nav-profile" role="tab" aria-controls="nav-profile" aria-selected="false">Profile</a>
402- <a class="nav-item nav- link" id="nav-contact-tab" data-toggle="tab" href="#nav-contact" role="tab" aria-controls="nav-contact" aria-selected="false">Contact</a>
400+ <a class="nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true">Home</a>
401+ <a class="nav-link" id="nav-profile-tab" data-toggle="tab" href="#nav-profile" role="tab" aria-controls="nav-profile" aria-selected="false">Profile</a>
402+ <a class="nav-link" id="nav-contact-tab" data-toggle="tab" href="#nav-contact" role="tab" aria-controls="nav-contact" aria-selected="false">Contact</a>
403403 </div >
404404</nav >
405405<div class =" tab-content " id =" nav-tabContent " >
0 commit comments