mirror of
https://github.com/bitwarden/browser
synced 2026-02-20 03:13:55 +00:00
update styles to match figma
This commit is contained in:
@@ -31,6 +31,7 @@ const defaultIcon: Record<BannerType, string> = {
|
||||
export class BannerComponent implements OnInit {
|
||||
readonly bannerType = input<BannerType>("info");
|
||||
|
||||
// passing `null` will remove the icon from element from the banner
|
||||
readonly icon = model<string>();
|
||||
readonly useAlertRole = input(true);
|
||||
readonly showClose = input(true);
|
||||
@@ -38,7 +39,7 @@ export class BannerComponent implements OnInit {
|
||||
@Output() onClose = new EventEmitter<void>();
|
||||
|
||||
ngOnInit(): void {
|
||||
if (!this.icon()) {
|
||||
if (!this.icon() && this.icon() != null) {
|
||||
this.icon.set(defaultIcon[this.bannerType()]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user