|
1 | | -<!-- |
| 1 | +<!-- |
2 | 2 | Copyright IBM Corp. 2016, 2018 |
3 | 3 |
|
4 | 4 | This source code is licensed under the Apache-2.0 license found in the |
5 | 5 | LICENSE file in the root directory of this source tree. |
6 | 6 | --> |
7 | 7 |
|
8 | | -<nav data-tabs class="{{@root.prefix}}--tabs" role="navigation"> |
| 8 | +<div data-tabs class="{{@root.prefix}}--tabs"> |
9 | 9 | <div class="{{@root.prefix}}--tabs-trigger" tabindex="0"> |
10 | 10 | <a href="javascript:void(0)" class="{{@root.prefix}}--tabs-trigger-text" tabindex="-1"></a> |
11 | 11 | {{ carbon-icon 'ChevronDownGlyph' }} |
12 | 12 | </div> |
13 | 13 | <ul class="{{@root.prefix}}--tabs__nav {{@root.prefix}}--tabs__nav--hidden" role="tablist"> |
14 | 14 | {{#each items}} |
15 | | - <li class="{{@root.prefix}}--tabs__nav-item{{#if selected}} {{@root.prefix}}--tabs__nav-item--selected{{/if}} {{#if disabled}} {{@root.prefix}}--tabs__nav-item--disabled {{/if}}" data-target=".{{panelClass}}" role="presentation"> |
16 | | - <a tabindex="0" id="{{linkId}}" class="{{@root.prefix}}--tabs__nav-link" href="javascript:void(0)" role="tab" aria-controls="{{panelId}}"{{#if selected}} aria-selected="true"{{/if}}>{{label}}</a> |
17 | | - </li> |
| 15 | + <li |
| 16 | + class="{{@root.prefix}}--tabs__nav-item{{#if selected}} {{@root.prefix}}--tabs__nav-item--selected{{/if}} {{#if disabled}} {{@root.prefix}}--tabs__nav-item--disabled {{/if}}" |
| 17 | + data-target=".{{panelClass}}" role="presentation"> |
| 18 | + <a tabindex="0" id="{{linkId}}" class="{{@root.prefix}}--tabs__nav-link" href="javascript:void(0)" role="tab" |
| 19 | + aria-controls="{{panelId}}" {{#if selected}} aria-selected="true" {{/if}}>{{label}}</a> |
| 20 | + </li> |
18 | 21 | {{/each}} |
19 | 22 | </ul> |
20 | | -</nav> |
| 23 | +</div> |
21 | 24 | <!-- The markup below is for demonstration purposes only --> |
22 | 25 | <div> |
23 | 26 | {{#each items}} |
24 | | - <div id="{{panelId}}" class="{{panelClass}}" role="tabpanel" aria-labelledby="{{linkId}}" aria-hidden="{{not selected}}"{{#if (not selected)}} hidden{{/if}}> |
25 | | - <p style="padding: 0 1rem; font-size: 14px; font-weight: 600;">{{panelContent}}</p> |
26 | | - </div> |
| 27 | + <div id="{{panelId}}" class="{{panelClass}}" role="tabpanel" aria-labelledby="{{linkId}}" |
| 28 | + aria-hidden="{{not selected}}" {{#if (not selected)}} hidden{{/if}}> |
| 29 | + <p style="padding: 0 1rem; font-size: 14px; font-weight: 600;">{{panelContent}}</p> |
| 30 | + </div> |
27 | 31 | {{/each}} |
28 | 32 | </div> |
0 commit comments