1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-19 19:04:01 +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

@@ -12,8 +12,9 @@
@if (showTasksResolvedBanner()) {
<bit-banner
class="-tw-m-6 tw-flex tw-flex-col tw-pb-6 tw-pt-2"
class="-tw-m-5 tw-flex tw-flex-col tw-pt-2 tw-px-2 tw-mb-3"
bannerType="info"
[icon]="null"
[showClose]="true"
(onClose)="successBannerDismissed()"
>

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