Skip to content

Commit

Permalink
Fixed #7473 - disabled header fix on Accordion
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Mar 31, 2019
1 parent 12c9083 commit f6b8629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/accordion/accordion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let idx: number = 0;
selector: 'p-accordionTab',
template: `
<div class="ui-accordion-header ui-state-default ui-corner-all" [ngClass]="{'ui-state-active': selected,'ui-state-disabled':disabled}">
<a tabindex="0" [attr.id]="id" [attr.aria-controls]="id + '-content'" role="tab" [attr.aria-expanded]="selected" (click)="toggle($event)"
<a [attr.tabindex]="disabled ? -1 : 0" [attr.id]="id" [attr.aria-controls]="id + '-content'" role="tab" [attr.aria-expanded]="selected" (click)="toggle($event)"
(keydown)="onKeydown($event)">
<span class="ui-accordion-toggle-icon" [ngClass]="selected ? accordion.collapseIcon : accordion.expandIcon"></span>
<span class="ui-accordion-header-text" *ngIf="!hasHeaderFacet">
Expand Down

0 comments on commit f6b8629

Please sign in to comment.