Skip to content

Commit ec5cb6b

Browse files
docs(tab-bar): publish tab bar docs (#718)
closes #631
1 parent 6f47d8c commit ec5cb6b

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.pa11yci

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"http://127.0.0.1:8080/patterns/components-pagination/index.html",
3030
"http://127.0.0.1:8080/patterns/components-sidenavi/index.html",
3131
"http://127.0.0.1:8080/patterns/components-table/index.html",
32+
"http://127.0.0.1:8080/patterns/components-tab-bar/index.html",
3233
"http://127.0.0.1:8080/patterns/areas-footer/index.html",
3334
"http://127.0.0.1:8080/patterns/areas-grid/index.html",
3435
"http://127.0.0.1:8080/patterns/areas-header-header/areas-header-header.rendered.html",

source/_patterns/02-components/tab-bar/tab-bar.hbs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<div class="cmp-tab-bar" role="tablist">
33
<!-- Pay attention to use a component wide, but component instance specific name to the following input[type="radio"] elements //-->
44
{{#each tabs }}
5-
<input type="radio" name="cmp-tab-bar-tabs-01" id="radio_{{ label }}" {{#if active }} checked{{/if }}{{#if disabled }}
5+
<input type="radio" name="cmp-tab-bar-tabs-01" id="radio_{{ @index }}" {{#if active }} checked{{/if }}{{#if disabled }}
66
disabled{{/if }}>
7-
<label for="radio_{{ label }}" role="tab">{{ label }}</label>
8-
<section id="content_{{ label }}" role="tabpanel">
7+
<label for="radio_{{ @index }}" role="tab">{{ @index }}</label>
8+
<section id="content_{{ @index }}" role="tabpanel">
99
{{ content }}
1010
</section>
1111
{{/each }}

tests/backstop.json

+5
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,11 @@
346346
"url": "http://127.0.0.1:8080/patterns/components-table/index.html",
347347
"referenceUrl": "https://db-ui.github.io/core/patterns/components-table/index.html"
348348
},
349+
{
350+
"label": "Components – Tab Bar",
351+
"url": "http://127.0.0.1:8080/patterns/components-tab-bar/index.html",
352+
"referenceUrl": "https://db-ui.github.io/core/patterns/components-tab-bar/index.html"
353+
},
349354
{
350355
"label": "Areas - Header",
351356
"url": "http://127.0.0.1:8080/patterns/areas-header/index.html",

0 commit comments

Comments
 (0)