From 4d1f8851539af02e5c37095d9231c48dbde4a13b Mon Sep 17 00:00:00 2001 From: Todd Kloots Date: Wed, 10 Jun 2015 22:51:40 -0700 Subject: [PATCH] [fixed] bug where placeholder links required a tabindex and an ARIA role (closes #62) [fixed] bug where elements with role=none required a label (closes #63) [fixed] bug where elements with aria-hidden required a label (closes #64) [added] test to ensure interactive elements hidden using aria-hidden are removed from the tab flow --- lib/__tests__/index-test.js | 86 ++++++++++++++++++++++++++++++++++++- lib/assertions.js | 70 ++++++++++++++++++++++++------ lib/index.js | 8 +--- 3 files changed, 142 insertions(+), 22 deletions(-) diff --git a/lib/__tests__/index-test.js b/lib/__tests__/index-test.js index ad760a6..3b62e4f 100644 --- a/lib/__tests__/index-test.js +++ b/lib/__tests__/index-test.js @@ -61,6 +61,12 @@ describe('props', () => {
; }); }); + + it('does not warn with no role and `aria-hidden="true"`', () => { + doNotExpectWarning(assertions.props.onClick.NO_ROLE.msg, () => { +