add role to card component (#8447)

This commit is contained in:
Alan Ren
2019-11-22 17:31:22 -08:00
committed by GitHub
parent 66e1c01793
commit 56182a53d1

View File

@@ -1,4 +1,4 @@
<div *ngIf="label" [class]="getClass()" (click)="onCardClick()" (mouseover)="onCardHoverChanged($event)"
<div role="button" *ngIf="label" [class]="getClass()" (click)="onCardClick()" (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">