From 2df211111b40b5dff96e9cc6ceb5c70c3cf0659f Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Mon, 13 Jun 2016 10:10:16 -0700 Subject: [PATCH] feat(pager): toggle tabindex when disabled - Add `tabindex="-1"` when disabled and remove it when not for accessibility --- src/pager/index.js | 1 + template/pager/pager.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pager/index.js b/src/pager/index.js index 57cd4e36fc..8f99dbcf81 100644 --- a/src/pager/index.js +++ b/src/pager/index.js @@ -1,4 +1,5 @@ require('../paging'); +require('../tabindex'); require('../../template/pager/pager.html.js'); require('./pager'); diff --git a/template/pager/pager.html b/template/pager/pager.html index 350c8e1676..45c11150b2 100644 --- a/template/pager/pager.html +++ b/template/pager/pager.html @@ -1,2 +1,2 @@ -
  • {{::getText('previous')}}
  • -
  • {{::getText('next')}}
  • +
  • {{::getText('previous')}}
  • +
  • {{::getText('next')}}