1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

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
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"> <h3 class="callout-heading" *ngIf="title">
<i class="fa {{icon}}" *ngIf="icon" aria-hidden="true"></i> <i class="fa {{icon}}" *ngIf="icon" aria-hidden="true"></i>
{{title}} {{title}}

View File

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