From 2b528d6cff2b2cabde48c5e7c9e1bf12c385b78a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Mon, 29 Jul 2024 12:00:00 +0300 Subject: [PATCH 1/2] Fixed #14916 - Dialog | Material Design close button regression --- src/app/components/dialog/dialog.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/components/dialog/dialog.ts b/src/app/components/dialog/dialog.ts index 5c25139b2e5..b15f2128bf3 100755 --- a/src/app/components/dialog/dialog.ts +++ b/src/app/components/dialog/dialog.ts @@ -128,6 +128,7 @@ const hideAnimation = animation([animate('{{transition}}', style({ transform: '{ pRipple pButton [attr.tabindex]="closeTabindex" + [ngStyle]="{ 'min-width': null }" > @@ -1063,3 +1064,4 @@ export class Dialog implements AfterContentInit, OnInit, OnDestroy { declarations: [Dialog] }) export class DialogModule {} + From 7358ce2c637095a05ea5eb0c11cdbe9889276256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Mon, 29 Jul 2024 12:06:23 +0300 Subject: [PATCH 2/2] refactor --- src/app/components/dialog/dialog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/dialog/dialog.ts b/src/app/components/dialog/dialog.ts index b15f2128bf3..f59723a20d2 100755 --- a/src/app/components/dialog/dialog.ts +++ b/src/app/components/dialog/dialog.ts @@ -128,7 +128,7 @@ const hideAnimation = animation([animate('{{transition}}', style({ transform: '{ pRipple pButton [attr.tabindex]="closeTabindex" - [ngStyle]="{ 'min-width': null }" + [ngStyle]="{ 'min-width': 0 }" >