@@ -19,16 +19,16 @@ <h4>Tabs without fade</h4>
19
19
20
20
< ul class ="nav nav-tabs " role ="tablist ">
21
21
< li class ="nav-item " role ="presentation ">
22
- < a class ="nav-link active " data-toggle ="tab " href ="#home " role ="tab "> Home</ a >
22
+ < button type =" button " class ="nav-link active " data-toggle ="tab " data-target ="#home " role ="tab " aria-selected =" true " > Home</ button >
23
23
</ li >
24
24
< li class ="nav-item " role ="presentation ">
25
- < a class ="nav-link " data-toggle ="tab " href ="#profile " role ="tab "> Profile</ a >
25
+ < button type =" button " class ="nav-link " data-toggle ="tab " data-target ="#profile " role ="tab "> Profile</ button >
26
26
</ li >
27
27
< li class ="nav-item " role ="presentation ">
28
- < a class ="nav-link " data-toggle ="tab " href ="#fat " role ="tab "> @fat</ a >
28
+ < button type =" button " class ="nav-link " data-toggle ="tab " data-target ="#fat " role ="tab "> @fat</ button >
29
29
</ li >
30
30
< li class ="nav-item " role ="presentation ">
31
- < a class ="nav-link " data-toggle ="tab " href ="#mdo " role ="tab "> @mdo</ a >
31
+ < button type =" button " class ="nav-link " data-toggle ="tab " data-target ="#mdo " role ="tab "> @mdo</ button >
32
32
</ li >
33
33
</ ul >
34
34
@@ -55,16 +55,16 @@ <h4>Tabs with fade</h4>
55
55
56
56
< ul class ="nav nav-tabs " role ="tablist ">
57
57
< li class ="nav-item " role ="presentation ">
58
- < a class ="nav-link active " data-toggle ="tab " href ="#home2 " role ="tab "> Home</ a >
58
+ < button type =" button " class ="nav-link active " data-toggle ="tab " data-target ="#home2 " role ="tab " aria-selected =" true " > Home</ button >
59
59
</ li >
60
60
< li class ="nav-item " role ="presentation ">
61
- < a class ="nav-link " data-toggle ="tab " href ="#profile2 " role ="tab "> Profile</ a >
61
+ < button type =" button " class ="nav-link " data-toggle ="tab " data-target ="#profile2 " role ="tab "> Profile</ button >
62
62
</ li >
63
63
< li class ="nav-item " role ="presentation ">
64
- < a class ="nav-link " data-toggle ="tab " href ="#fat2 " role ="tab "> @fat</ a >
64
+ < button type =" button " class ="nav-link " data-toggle ="tab " data-target ="#fat2 " role ="tab "> @fat</ button >
65
65
</ li >
66
66
< li class ="nav-item " role ="presentation ">
67
- < a class ="nav-link " data-toggle ="tab " href ="#mdo2 " role ="tab "> @mdo</ a >
67
+ < button type =" button " class ="nav-link " data-toggle ="tab " data-target ="#mdo2 " role ="tab "> @mdo</ button >
68
68
</ li >
69
69
</ ul >
70
70
@@ -91,16 +91,16 @@ <h4>Tabs without fade (no initially active pane)</h4>
91
91
92
92
< ul class ="nav nav-tabs " role ="tablist ">
93
93
< li class ="nav-item " role ="presentation ">
94
- < a class ="nav-link " data-toggle ="tab " href ="#home3 " role ="tab "> Home</ a >
94
+ < button type =" button " class ="nav-link " data-toggle ="tab " data-target ="#home3 " role ="tab "> Home</ button >
95
95
</ li >
96
96
< li class ="nav-item " role ="presentation ">
97
- < a class ="nav-link " data-toggle ="tab " href ="#profile3 " role ="tab "> Profile</ a >
97
+ < button type =" button " class ="nav-link " data-toggle ="tab " data-target ="#profile3 " role ="tab "> Profile</ button >
98
98
</ li >
99
99
< li class ="nav-item " role ="presentation ">
100
- < a class ="nav-link " data-toggle ="tab " href ="#fat3 " role ="tab "> @fat</ a >
100
+ < button type =" button " class ="nav-link " data-toggle ="tab " data-target ="#fat3 " role ="tab "> @fat</ button >
101
101
</ li >
102
102
< li class ="nav-item " role ="presentation ">
103
- < a class ="nav-link " data-toggle ="tab " href ="#mdo3 " role ="tab "> @mdo</ a >
103
+ < button type =" button " class ="nav-link " data-toggle ="tab " data-target ="#mdo3 " role ="tab "> @mdo</ button >
104
104
</ li >
105
105
</ ul >
106
106
@@ -159,26 +159,23 @@ <h4>Tabs with fade (no initially active pane)</h4>
159
159
</ div >
160
160
</ div >
161
161
162
- < h4 > Tabs with nav (with fade)</ h4 >
163
- < nav class ="nav nav-pills ">
164
- < a class ="nav-link nav-item active " data-toggle ="tab " href ="#home5 "> Home</ a >
165
- < a class ="nav-link nav-item " data-toggle ="tab " href ="#profile5 "> Profile</ a >
166
- < div class ="nav-item dropdown ">
167
- < a class ="nav-link dropdown-toggle " href ="# " id ="dropdown5 " data-toggle ="dropdown " aria-expanded ="false "> Dropdown</ a >
168
- < div class ="dropdown-menu " aria-labelledby ="dropdown5 ">
169
- < a class ="dropdown-item " data-toggle ="tab " href ="#fat5 "> @fat</ a >
170
- < a class ="dropdown-item " data-toggle ="tab " href ="#mdo5 "> @mdo</ a >
171
- </ div >
162
+ < h4 > Tabs with nav and using links (with fade)</ h4 >
163
+ < nav >
164
+ < div class ="nav nav-pills " id ="nav-tab " role ="tablist ">
165
+ < a class ="nav-link nav-item active " role ="tab " data-toggle ="tab " href ="#home5 "> Home</ a >
166
+ < a class ="nav-link nav-item " role ="tab " data-toggle ="tab " href ="#profile5 "> Profile</ a >
167
+ < a class ="nav-link nav-item " role ="tab " data-toggle ="tab " href ="#fat5 "> @fat</ a >
168
+ < a class ="nav-link nav-item " role ="tab " data-toggle ="tab " href ="#mdo5 "> @mdo</ a >
169
+ < a class ="nav-link nav-item disabled " role ="tab " href ="# "> Disabled</ a >
172
170
</ div >
173
- < a class ="nav-link nav-item disabled " href ="# "> Disabled</ a >
174
171
</ nav >
175
172
176
- < div class ="tab-content " role =" tabpanel " >
177
- < div role =" tabpanel " class ="tab-pane fade show active " id ="home5 ">
173
+ < div class ="tab-content ">
174
+ < div class ="tab-pane fade show active " id ="home5 " role =" tabpanel ">
178
175
< p > Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</ p >
179
176
< p > Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</ p >
180
177
</ div >
181
- < div role =" tabpanel " class ="tab-pane fade " id ="profile5 ">
178
+ < div class ="tab-pane fade " id ="profile5 " role =" tabpanel ">
182
179
< p > Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</ p >
183
180
< p > Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</ p >
184
181
</ div >
@@ -196,10 +193,10 @@ <h4>Tabs with list-group (with fade)</h4>
196
193
< div class ="row ">
197
194
< div class ="col-4 ">
198
195
< div class ="list-group " id ="list-tab " role ="tablist ">
199
- < a class ="list-group-item list-group-item-action active " id ="list-home-list " data-toggle ="tab " href ="#list-home " role ="tab " aria-controls ="list-home "> Home</ a >
200
- < a class ="list-group-item list-group-item-action " id ="list-profile-list " data-toggle ="tab " href ="#list-profile " role ="tab " aria-controls ="list-profile "> Profile</ a >
201
- < a class ="list-group-item list-group-item-action " id ="list-messages-list " data-toggle ="tab " href ="#list-messages " role ="tab " aria-controls ="list-messages "> Messages</ a >
202
- < a class ="list-group-item list-group-item-action " id ="list-settings-list " data-toggle ="tab " href ="#list-settings " role ="tab " aria-controls ="list-settings "> Settings</ a >
196
+ < button type =" button " class ="list-group-item list-group-item-action active " id ="list-home-list " data-toggle ="tab " data-target ="#list-home " role ="tab " aria-controls ="list-home " aria-selected =" true " > Home</ button >
197
+ < button type =" button " class ="list-group-item list-group-item-action " id ="list-profile-list " data-toggle ="tab " data-target ="#list-profile " role ="tab " aria-controls ="list-profile "> Profile</ button >
198
+ < button type =" button " class ="list-group-item list-group-item-action " id ="list-messages-list " data-toggle ="tab " data-target ="#list-messages " role ="tab " aria-controls ="list-messages "> Messages</ button >
199
+ < button type =" button " class ="list-group-item list-group-item-action " id ="list-settings-list " data-toggle ="tab " data-target ="#list-settings " role ="tab " aria-controls ="list-settings "> Settings</ button >
203
200
</ div >
204
201
</ div >
205
202
< div class ="col-8 ">
0 commit comments