Skip to content

Commit

Permalink
fix #14950 Dialog ariaLabelledBy
Browse files Browse the repository at this point in the history
  • Loading branch information
Taneli Tuomola committed Mar 19, 2024
1 parent 3019f89 commit 912d734
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/components/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ const hideAnimation = animation([animate('{{transition}}', style({ transform: '{
<ng-template #notHeadless>
<div *ngIf="resizable" class="p-resizable-handle" style="z-index: 90;" (mousedown)="initResize($event)"></div>
<div #titlebar class="p-dialog-header" (mousedown)="initDrag($event)" *ngIf="showHeader">
<span [id]="getAriaLabelledBy()" class="p-dialog-title" *ngIf="!headerFacet && !headerTemplate">{{ header }}</span>
<span [id]="getAriaLabelledBy()" class="p-dialog-title" *ngIf="headerFacet">
<span [id]="ariaLabelledBy" class="p-dialog-title" *ngIf="!headerFacet && !headerTemplate">{{ header }}</span>
<span [id]="ariaLabelledBy" class="p-dialog-title" *ngIf="headerFacet">
<ng-content select="p-header"></ng-content>
</span>
<ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
Expand Down Expand Up @@ -492,7 +492,7 @@ export class Dialog implements AfterContentInit, OnInit, OnDestroy {

dragging: boolean | undefined;

ariaLabelledBy: string | undefined;
ariaLabelledBy: string = this.getAriaLabelledBy();

documentDragListener: VoidListener;

Expand Down

0 comments on commit 912d734

Please sign in to comment.