adds tab accessibility (#1433)

This commit is contained in:
Anthony Dresser
2018-05-18 13:52:22 -07:00
committed by GitHub
parent fb4260d71c
commit 0225d6d9f9
4 changed files with 9 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ export abstract class TabChild {
@Component({
selector: 'tab',
template: `
<div class="visibility" [class.hidden]="shouldBeHidden()" *ngIf="shouldBeIfed()" class="fullsize">
<div role="tabpanel" [attr.aria-labelledby]="identifier" tabindex="0" class="visibility" [class.hidden]="shouldBeHidden()" *ngIf="shouldBeIfed()" class="fullsize">
<ng-container *ngTemplateOutlet="templateRef"></ng-container>
</div>
`