Skip to content

Commit

Permalink
Fixed #16125 - Breadcrumb | Disabled breadcrumbs should have aria-dis…
Browse files Browse the repository at this point in the history
…abled
  • Loading branch information
mehmetcetin01140 committed Jul 30, 2024
1 parent d90f82f commit d36d3be
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/app/components/breadcrumb/breadcrumb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { BreadcrumbItemClickEvent } from './breadcrumb.interface';
pTooltip
[tooltipOptions]="home.tooltipOptions"
[attr.data-pc-section]="'home'"
[attr.aria-disabled]="home.disabled"
>
<a
[href]="home.url ? home.url : null"
Expand Down Expand Up @@ -76,7 +77,16 @@ import { BreadcrumbItemClickEvent } from './breadcrumb.interface';
<ng-template *ngTemplateOutlet="separatorTemplate"></ng-template>
</li>
<ng-template ngFor let-item let-end="last" [ngForOf]="model">
<li [class]="item.styleClass" [attr.id]="item.id" [ngStyle]="item.style" [ngClass]="{ 'p-disabled': item.disabled }" pTooltip [tooltipOptions]="item.tooltipOptions" [attr.data-pc-section]="'menuitem'">
<li
[class]="item.styleClass"
[attr.id]="item.id"
[attr.aria-disabled]="item.disabled"
[ngStyle]="item.style"
[ngClass]="{ 'p-disabled': item.disabled }"
pTooltip
[tooltipOptions]="item.tooltipOptions"
[attr.data-pc-section]="'menuitem'"
>
<a
*ngIf="!item.routerLink"
[attr.href]="item.url ? item.url : null"
Expand Down

0 comments on commit d36d3be

Please sign in to comment.