Skip to content

Commit

Permalink
feat(pagination-nav): Better tab/focus management
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorehouse committed Oct 4, 2017
1 parent 42b31da commit adf8dcc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/components/pagination-nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
:aria-label="ariaLabel ? ariaLabel : null"
role="menubar"
tabindex="0"
@focusin.self="focusCurrent"
@keydown.left.prevent="focusPrev"
@keydown.right.prevent="focusNext"
@keydown.shift.left.prevent="focusFirst"
Expand Down Expand Up @@ -60,7 +59,7 @@
:aria-posinset="page.number"
:aria-setsize="numberOfPages"
role="menuitemradio"
tabindex="-1"
:tabindex="isActive(page.number) ? '0' : '-1'"
@click="onClick(page.number)"
v-html="makePage(page.number)"
></b-link>
Expand Down

0 comments on commit adf8dcc

Please sign in to comment.