Skip to content

Commit

Permalink
tries to pass value down to mat-tab correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneBenHMCTS committed Feb 10, 2025
1 parent dac3779 commit ca6b980
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hmcts/ccd-case-ui-toolkit",
"version": "7.1.33-accessible-tab-description-v4",
"version": "7.1.33-accessible-tab-description-v5",
"engines": {
"node": ">=18.19.0"
},
Expand Down
2 changes: 1 addition & 1 deletion projects/ccd-case-ui-toolkit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hmcts/ccd-case-ui-toolkit",
"version": "7.1.33-accessible-tab-description-v4",
"version": "7.1.33-accessible-tab-description-v5",
"engines": {
"node": ">=18.19.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ <h2 class="heading-h2 error-summary-heading" id="edit-case-event_error-summary-h
<ng-container *ngIf="hasTabsPresent()">
<mat-tab-group #tabGroup animationDuration="0ms" (selectedIndexChange)="tabChanged($event)" [disableRipple]="true"
[selectedIndex]="selectedTabIndex">
<mat-tab *ngFor="let tab of prependedTabs" [id]="tab.id" [label]="tab.label | rpxTranslate">
<mat-tab *ngFor="let tab of prependedTabs" [id]="tab.id" [label]="tab.label | rpxTranslate" [aria-label]="'To use tabbed navigation, please use left and right arrow keys' | rpxTranslate">
</mat-tab>
<mat-tab *ngFor="let tab of sortedTabs; let curIdx=index" [id]="tab.id" [label]="tab.label | rpxTranslate" [attr.aria-label]="'To use tabbed navigation, please use left and right arrow keys' | rpxTranslate">
<mat-tab *ngFor="let tab of sortedTabs; let curIdx=index" [id]="tab.id" [label]="tab.label | rpxTranslate" [aria-label]="'To use tabbed navigation, please use left and right arrow keys' | rpxTranslate">
<ng-template matTabContent>
<table [class]="tab.id" [attr.aria-label]="'case viewer table' | rpxTranslate">
<tbody>
Expand Down Expand Up @@ -98,7 +98,7 @@ <h2 class="heading-h2 error-summary-heading" id="edit-case-event_error-summary-h
</table>
</ng-template>
</mat-tab>
<mat-tab *ngFor="let tab of appendedTabs" [id]="tab.id" [label]="tab.label | rpxTranslate">
<mat-tab *ngFor="let tab of appendedTabs" [id]="tab.id" [label]="tab.label | rpxTranslate" [aria-label]="'To use tabbed navigation, please use left and right arrow keys' | rpxTranslate">
</mat-tab>
</mat-tab-group>
<router-outlet *ngIf="(prependedTabs && prependedTabs.length) || (appendedTabs && appendedTabs.length)"></router-outlet>
Expand Down

0 comments on commit ca6b980

Please sign in to comment.