update the card role and add aria-checked state (#8451)

This commit is contained in:
Alan Ren
2019-11-24 12:03:10 -08:00
committed by GitHub
parent fb3b7be9e5
commit be7c26ede5

View File

@@ -1,4 +1,4 @@
<div role="button" *ngIf="label" [class]="getClass()" (click)="onCardClick()" (mouseover)="onCardHoverChanged($event)"
<div role="radio" *ngIf="label" [class]="getClass()" (click)="onCardClick()" [attr.aria-checked]="selected" (mouseover)="onCardHoverChanged($event)"
(mouseout)="onCardHoverChanged($event)" tabIndex="0" [style.width]="width" [style.height]="height">
<ng-container *ngIf="isVerticalButton || isDetailsCard">
<span *ngIf="hasStatus" class="card-status">