From 7ce29d75f38f2c81f57e8a6cf14c510655e2e316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laussel=20Lo=C3=AFc?= Date: Sat, 28 Mar 2020 08:51:24 +0100 Subject: v5 tabs - accessibility issue when using ul/li semantic Add aria-role presentation on li element when ul element has role tablist and remove dropdown from visual tests as they've been removed from doc --- js/tests/unit/tab.spec.js | 34 ++++++++++++------------ js/tests/visual/collapse.html | 8 +++--- js/tests/visual/modal.html | 6 ++--- js/tests/visual/tab.html | 60 ++++++++++++++++++++----------------------- 4 files changed, 52 insertions(+), 56 deletions(-) (limited to 'js') diff --git a/js/tests/unit/tab.spec.js b/js/tests/unit/tab.spec.js index 3e45f4d03..70aa8eb33 100644 --- a/js/tests/unit/tab.spec.js +++ b/js/tests/unit/tab.spec.js @@ -129,8 +129,8 @@ describe('Tab', () => { it('should not fire shown when tab is already active', done => { fixtureEl.innerHTML = [ '', '
', '
', @@ -155,8 +155,8 @@ describe('Tab', () => { it('should not fire shown when tab is disabled', done => { fixtureEl.innerHTML = [ '', '
', '
', @@ -181,8 +181,8 @@ describe('Tab', () => { it('show and shown events should reference correct relatedTarget', done => { fixtureEl.innerHTML = [ '', '
', '
', @@ -275,17 +275,17 @@ describe('Tab', () => { it('should handle removed tabs', done => { fixtureEl.innerHTML = [ ' @@ -72,20 +72,20 @@ - +
@@ -173,11 +173,11 @@
@@ -186,11 +186,11 @@ - +
@@ -198,11 +198,11 @@ - +
diff --git a/js/tests/visual/scrollspy.html b/js/tests/visual/scrollspy.html index 30ce86e1f..03e62c1f4 100644 --- a/js/tests/visual/scrollspy.html +++ b/js/tests/visual/scrollspy.html @@ -25,11 +25,11 @@