From be1a2405d59774e492a7e583a2bdb3f91118f902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Mon, 14 Sep 2020 16:05:26 +0100 Subject: [PATCH] Modal tabs accessibility --- www/common/common-interface.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/common-interface.js b/www/common/common-interface.js index 1b1fdc072..f028c415d 100644 --- a/www/common/common-interface.js +++ b/www/common/common-interface.js @@ -221,9 +221,9 @@ define([ tabs.forEach(function (tab, i) { if (!(tab.content || tab.disabled) || !tab.title) { return; } var content = h('div.alertify-tabs-content', tab.content); - var title = h('span.alertify-tabs-title'+ (tab.disabled ? '.disabled' : ''), h('span.tab-title-text',tab.title)); + var title = h('span.alertify-tabs-title'+ (tab.disabled ? '.disabled' : ''), h('span.tab-title-text',{id: 'cp-tab-' + tab.title, 'aria-hidden':"true"}, tab.title)); if (tab.icon) { - var icon = h('i', {class: tab.icon}); + var icon = h('i', {class: tab.icon, 'aria-labelledby': 'cp-tab-' + tab.title}); $(title).prepend(' ').prepend(icon); } $(title).click(function () {