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:
@@ -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()"
|
||||
>
|
||||
|
||||
@@ -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