Skip to content

Commit

Permalink
Fixes #17072
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Dec 17, 2024
1 parent d82211b commit 5a4219a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/primeng/src/confirmdialog/confirmdialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ const hideAnimation = animation([animate('{{transition}}', style({ transform: '{
[(visible)]="visible"
role="alertdialog"
[closable]="option('closable')"
[styleClass]="cx('root')"
[styleClass]="containerClass"
[modal]="true"
[header]="option('header')"
[closeOnEscape]="option('closeOnEscape')"
[blockScroll]="option('blockScroll')"
[appendTo]="option('appendTo')"
[position]="position"
[style]="style"
>
@if (headlessTemplate || _headlessTemplate) {
<ng-template #headless>
Expand Down Expand Up @@ -405,6 +406,10 @@ export class ConfirmDialog extends BaseComponent implements OnInit, OnDestroy {

translationSubscription: Subscription | undefined;

get containerClass(): string {
return this.cx('root') + ' ' + this.styleClass || ' ';
}

constructor(
private confirmationService: ConfirmationService,
public zone: NgZone
Expand Down

0 comments on commit 5a4219a

Please sign in to comment.