Skip to content

Commit

Permalink
fix #1469 Removed tablist roles
Browse files Browse the repository at this point in the history
  • Loading branch information
Taneli Tuomola committed Mar 20, 2024
1 parent 7fc33f0 commit a35a000
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/app/components/steps/steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ import { Subscription } from 'rxjs';
selector: 'p-steps',
template: `
<nav [ngClass]="{ 'p-steps p-component': true, 'p-readonly': readonly }" [ngStyle]="style" [class]="styleClass" [attr.data-pc-name]="'steps'">
<ul #list role="tablist" [attr.data-pc-section]="'menu'">
<ul #list [attr.data-pc-section]="'menu'">
<li
*ngFor="let item of model; let i = index"
class="p-steps-item"
#menuitem
[ngStyle]="item.style"
[class]="item.styleClass"
[attr.aria-current]="isActive(item, i) ? 'step' : undefined"
role="presentation"
[attr.id]="item.id"
pTooltip
[tooltipOptions]="item.tooltipOptions"
Expand All @@ -33,7 +32,6 @@ import { Subscription } from 'rxjs';
*ngIf="isClickableRouterLink(item); else elseBlock"
[routerLink]="item.routerLink"
[queryParams]="item.queryParams"
role="tab"
[routerLinkActive]="'p-menuitem-link-active'"
[routerLinkActiveOptions]="item.routerLinkActiveOptions || { exact: false }"
class="p-menuitem-link"
Expand All @@ -60,7 +58,6 @@ import { Subscription } from 'rxjs';
<a
[attr.href]="item.url"
class="p-menuitem-link"
role="tab"
(click)="onItemClick($event, item, i)"
(keydown)="onItemKeydown($event, item, i)"
[target]="item.target"
Expand Down

0 comments on commit a35a000

Please sign in to comment.