forked from angular/angular.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patha11y-component-roles.component.html
47 lines (37 loc) · 1.21 KB
/
a11y-component-roles.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<nav role="navigation" class="skiplink">
<a [href]="generateSkiplink('#templateroles')" >Go directly to roles in the template</a>
<a [href]="generateSkiplink('#hostroles')">Go directly roles of the host element</a>
</nav>
<article role="article">
<header class="row well">
<h2>Roles for custom component widgets</h2>
</header>
<section class="row well">
<header>
<h3 id="templateroles" tabindex="-1">Roles in the template</h3>
<hr>
</header>
<a11y-custom-control [(ngModel)]="inputDivModel">
I set the role in my template:
</a11y-custom-control>
<a11y-value-helper [displayValue]="inputDivModel"></a11y-value-helper>
</section>
<section class="row well">
<header>
<h3 id="hostroles" tabindex="-1">Roles of the host element</h3>
<hr>
</header>
<div class="row">
<div class="col-xs-12">
<!-- #docregion cb-a11y-custom-button-usage -->
<a11y-custom-button (click)="onClick()">Do something...</a11y-custom-button>
<!-- #enddocregion -->
</div>
</div>
<div class="row">
<div class="col-xs-12">
<a11y-value-helper [displayValue]="generateButtonString()"></a11y-value-helper>
</div>
</div>
</section>
</article>