1
0
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:
jng
2025-08-15 11:50:10 -04:00
parent 7627e794af
commit b6265cf6e4
2 changed files with 4 additions and 2 deletions

View File

@@ -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()]);
}
}