Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
<mat-paginator [length]="length"
[pageSize]="pageSize"
[pageSizeOptions]="pageSizeOptions"
(page)="pageEvent = $event">
(page)="pageEvent = $event"
aria-label="Select page">
</mat-paginator>

<div *ngIf="pageEvent">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
[pageSize]="pageSize"
[showFirstLastButtons]="showFirstLastButtons"
[pageSizeOptions]="pageSizeOptions"
[pageIndex]="pageIndex">
[pageIndex]="pageIndex"
aria-label="Select page">
</mat-paginator>
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<mat-paginator [length]="200" [pageSizeOptions]="[10, 50, 100]">
<mat-paginator [length]="200" [pageSizeOptions]="[10, 50, 100]" aria-label="Select page">
</mat-paginator>
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<mat-paginator [length]="100"
[pageSize]="10"
[pageSizeOptions]="[5, 10, 25, 100]">
[pageSizeOptions]="[5, 10, 25, 100]"
aria-label="Select page">
</mat-paginator>
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
</table>
</div>

<mat-paginator [length]="resultsLength" [pageSize]="30"></mat-paginator>
<mat-paginator [length]="resultsLength" [pageSize]="30" aria-label="Select page of GitHub search results"></mat-paginator>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,5 @@
</tr>
</table>

<mat-paginator [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>
<mat-paginator [pageSizeOptions]="[5, 10, 25, 100]" aria-label="Select page of users"></mat-paginator>
</div>

Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>

<mat-paginator [pageSizeOptions]="[5, 10, 20]" showFirstLastButtons></mat-paginator>
<mat-paginator [pageSizeOptions]="[5, 10, 20]"
showFirstLastButtons
aria-label="Select page of periodic elements">
</mat-paginator>
</div>
5 changes: 3 additions & 2 deletions src/dev-app/mdc-paginator/mdc-paginator-demo.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<mat-card class="demo-section">
<h2>No inputs</h2>
<mat-paginator></mat-paginator>
<mat-paginator aria-label="Select page"></mat-paginator>
</mat-card>

<mat-card class="demo-section">
Expand Down Expand Up @@ -34,7 +34,8 @@ <h2>No inputs</h2>
[showFirstLastButtons]="showFirstLastButtons"
[pageSizeOptions]="showPageSizeOptions ? pageSizeOptions : []"
[hidePageSize]="hidePageSize"
[pageIndex]="pageIndex">
[pageIndex]="pageIndex"
aria-label="Select page">
</mat-paginator>

<div> Output event: {{pageEvent | json}} </div>
Expand Down
5 changes: 3 additions & 2 deletions src/dev-app/paginator/paginator-demo.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<mat-card class="demo-section">
<h2>No inputs</h2>
<mat-paginator></mat-paginator>
<mat-paginator aria-label="Select page"></mat-paginator>
</mat-card>

<mat-card class="demo-section">
Expand Down Expand Up @@ -31,7 +31,8 @@ <h2>No inputs</h2>
[showFirstLastButtons]="showFirstLastButtons"
[pageSizeOptions]="showPageSizeOptions ? pageSizeOptions : []"
[hidePageSize]="hidePageSize"
[pageIndex]="pageIndex">
[pageIndex]="pageIndex"
aria-label="Select page">
</mat-paginator>

<div> Output event: {{pageEvent | json}} </div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
[length]="dataSource?.data?.length"
[pageIndex]="0"
[pageSize]="10"
[pageSizeOptions]="[5, 10, 20]">
[pageSizeOptions]="[5, 10, 20]"
aria-label="Select page">
</mat-paginator>
</div>
3 changes: 2 additions & 1 deletion src/universal-app/kitchen-sink-mdc/kitchen-sink-mdc.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ <h2>MDC Tabs</h2>
<h2>MDC Paginator</h2>

<mat-paginator [length]="100"
[pageSizeOptions]="[5, 10, 25, 100]">
[pageSizeOptions]="[5, 10, 25, 100]"
aria-label="Select page">
</mat-paginator>

<h2>MDC Table</h2>
Expand Down
3 changes: 2 additions & 1 deletion src/universal-app/kitchen-sink/kitchen-sink.html
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ <h2>Tabs</h2>
<h2>Paginator</h2>

<mat-paginator [length]="100"
[pageSizeOptions]="[5, 10, 25, 100]">
[pageSizeOptions]="[5, 10, 25, 100]"
aria-label="Select page">
</mat-paginator>

<h2>Toolbar</h2>
Expand Down