set focus to default cards when loaded (#8480)

* set focus to default cards when loaded

* add return type
This commit is contained in:
Alan Ren
2019-11-25 20:31:39 -08:00
committed by GitHub
parent 7a38943412
commit ffee69a765
4 changed files with 11 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
<div role="radio" *ngIf="label" [class]="getClass()" (click)="onCardClick()" [attr.aria-checked]="selected" (mouseover)="onCardHoverChanged($event)"
<div #cardDiv 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">