Skip to content

Commit

Permalink
Merge pull request #1259 from palashp/patch-1
Browse files Browse the repository at this point in the history
Pager Component Accessibility
  • Loading branch information
amcdnl authored Feb 9, 2018
2 parents 358c510 + cfa87a9 commit fdb7775
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/footer/pager.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,25 @@ import {
<ul class="pager">
<li [class.disabled]="!canPrevious()">
<a
role="button"
aria-label="go to first page"
href="javascript:void(0)"
(click)="selectPage(1)">
<i class="{{pagerPreviousIcon}}"></i>
</a>
</li>
<li [class.disabled]="!canPrevious()">
<a
role="button"
aria-label="go to previous page"
href="javascript:void(0)"
(click)="prevPage()">
<i class="{{pagerLeftArrowIcon}}"></i>
</a>
</li>
<li
role="button"
[attr.aria-label]="'page ' + pg.number"
class="pages"
*ngFor="let pg of pages"
[class.active]="pg.number === page">
Expand All @@ -32,13 +38,17 @@ import {
</li>
<li [class.disabled]="!canNext()">
<a
role="button"
aria-label="go to next page"
href="javascript:void(0)"
(click)="nextPage()">
<i class="{{pagerRightArrowIcon}}"></i>
</a>
</li>
<li [class.disabled]="!canNext()">
<a
role="button"
aria-label="go to last page"
href="javascript:void(0)"
(click)="selectPage(totalPages)">
<i class="{{pagerNextIcon}}"></i>
Expand Down

0 comments on commit fdb7775

Please sign in to comment.