Skip to content

Commit

Permalink
Merge pull request #15134 from TaneliTuomola/issue-15133
Browse files Browse the repository at this point in the history
fix #15133 Update steps link attributes
  • Loading branch information
cetincakiroglu committed Mar 22, 2024
2 parents 6abef38 + 08b1f53 commit 5f32de3
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 5f32de3

Please sign in to comment.