Skip to content

Commit

Permalink
fix(module:pagination): add accessible name for nz-pagination-item (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Laffery committed Apr 15, 2024
1 parent 342841c commit 47ee143
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/pagination/pagination-item.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon';
<a>{{ page }}</a>
}
@case ('prev') {
<button type="button" [disabled]="disabled" class="ant-pagination-item-link">
<button type="button" [disabled]="disabled" [attr.title]="locale.prev_page" class="ant-pagination-item-link">
@if (direction === 'rtl') {
<span nz-icon nzType="right"></span>
} @else {
Expand All @@ -42,7 +42,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon';
</button>
}
@case ('next') {
<button type="button" [disabled]="disabled" class="ant-pagination-item-link">
<button type="button" [disabled]="disabled" [attr.title]="locale.next_page" class="ant-pagination-item-link">
@if (direction === 'rtl') {
<span nz-icon nzType="left"></span>
} @else {
Expand Down
2 changes: 2 additions & 0 deletions components/pagination/pagination-simple.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import { PaginationItemRenderContext } from './pagination.types';
<ul>
<li
nz-pagination-item
[locale]="locale"
[attr.title]="locale.prev_page"
[disabled]="isFirstIndex"
[direction]="dir"
Expand All @@ -56,6 +57,7 @@ import { PaginationItemRenderContext } from './pagination.types';
</li>
<li
nz-pagination-item
[locale]="locale"
[attr.title]="locale?.next_page"
[disabled]="isLastIndex"
[direction]="dir"
Expand Down

0 comments on commit 47ee143

Please sign in to comment.