Added clickable state to callout component (#282)

This commit is contained in:
Vincent Salucci 2021-02-22 20:32:40 -06:00 committed by GitHub
parent 8a3b551c6e
commit 11b8c5b5e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<div class="callout callout-{{calloutStyle}}" role="alert">
<div class="callout callout-{{calloutStyle}}" [ngClass]="{'clickable': clickable}" role="alert">
<h3 class="callout-heading" *ngIf="title">
<i class="fa {{icon}}" *ngIf="icon" aria-hidden="true"></i>
{{title}}

View File

@ -14,6 +14,7 @@ export class CalloutComponent implements OnInit {
@Input() type = 'info';
@Input() icon: string;
@Input() title: string;
@Input() clickable: boolean;
calloutStyle: string;