Skip to content

Commit

Permalink
fix #15133 Update steps link attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Taneli Tuomola committed Mar 21, 2024
1 parent b72fb02 commit 08b1f53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/steps/steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { Subscription } from 'rxjs';
[attr.data-pc-section]="'menuitem'"
>
<a
role="link"
*ngIf="isClickableRouterLink(item); else elseBlock"
[routerLink]="item.routerLink"
[queryParams]="item.queryParams"
Expand All @@ -39,7 +40,6 @@ import { Subscription } from 'rxjs';
(keydown)="onItemKeydown($event, item, i)"
[target]="item.target"
[attr.tabindex]="getItemTabIndex(item, i)"
[attr.aria-selected]="i === activeIndex"
[attr.aria-expanded]="i === activeIndex"
[attr.aria-disabled]="item.disabled || (readonly && i !== activeIndex)"
[fragment]="item.fragment"
Expand All @@ -56,13 +56,13 @@ import { Subscription } from 'rxjs';
</a>
<ng-template #elseBlock>
<a
role="link"
[attr.href]="item.url"
class="p-menuitem-link"
(click)="onItemClick($event, item, i)"
(keydown)="onItemKeydown($event, item, i)"
[target]="item.target"
[attr.tabindex]="getItemTabIndex(item, i)"
[attr.aria-selected]="i === activeIndex"
[attr.aria-expanded]="i === activeIndex"
[attr.aria-disabled]="item.disabled || (readonly && i !== activeIndex)"
[ariaCurrentWhenActive]="exact && (!item.disabled || readonly) ? 'step' : undefined"
Expand Down

0 comments on commit 08b1f53

Please sign in to comment.