Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP:adds a verbose descriptior to pagination number #1861

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
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.37",
"version": "7.1.36-pagination-descriptor-v7",
"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.37",
"version": "7.1.36-pagination-descriptor-v7",
"engines": {
"node": ">=18.19.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[attr.aria-label]="previousLabel + ' ' + screenReaderPageLabel | rpxTranslate">
{{ previousLabel | rpxTranslate }} <span class="show-for-sr">{{ screenReaderPageLabel | rpxTranslate }}</span>
</a>
<span *ngIf="p.isFirstPage()">
<span *ngIf="p.isFirstPage()" [attr.aria-label]="previousLabel + ' page' | rpxTranslate">
{{ previousLabel | rpxTranslate }} <span class="show-for-sr">{{ screenReaderPageLabel | rpxTranslate }}</span>
</span>
</li>
Expand All @@ -18,7 +18,7 @@
<li [class.current]="p.getCurrent() === page.value" [class.ellipsis]="page.label === '...'"
*ngFor="let page of p.pages">
<a tabindex="0" (keyup.enter)="p.setCurrent(page.value)" (click)="p.setCurrent(page.value)"
*ngIf="p.getCurrent() !== page.value">
*ngIf="p.getCurrent() !== page.value" [attr.aria-label]="(page.label === '...') ? ('Change pagination range' | rpxTranslate) : ('Page ' | rpxTranslate) + (page.label | number:'')">
<span class="show-for-sr">{{ screenReaderPageLabel | rpxTranslate }} </span>
<span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>
</a>
Expand Down