Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
feat(pager): toggle tabindex when disabled
Browse files Browse the repository at this point in the history
- Add `tabindex="-1"` when disabled and remove it when not for accessibility

Closes #5996
  • Loading branch information
wesleycho committed Jun 13, 2016
1 parent a47bced commit 0d8cec6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/pager/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require('../paging');
require('../tabindex');
require('../../template/pager/pager.html.js');
require('./pager');

Expand Down
4 changes: 2 additions & 2 deletions template/pager/pager.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)">{{::getText('previous')}}</a></li>
<li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)">{{::getText('next')}}</a></li>
<li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText('previous')}}</a></li>
<li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText('next')}}</a></li>

0 comments on commit 0d8cec6

Please sign in to comment.