From 59918ccc775998cd588c6a5fc044a7b101408529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 22 Mar 2018 16:58:40 +0100 Subject: [PATCH] Replace tooltip by title and aria-label As we display only text, it is more efficient to use title attribute. But we must also set aria-label because not all screen readers read the title. We add also the missing tooltip on some buttons. issue6828 review41201002 --- src/common.js | 2 -- src/screen.js | 23 +++++++++------- src/tab.js | 15 +++-------- src/view/form.js | 69 +++++++++++++++++++++++++++++++++--------------- src/view/tree.js | 2 -- 5 files changed, 64 insertions(+), 47 deletions(-) diff --git a/src/common.js b/src/common.js index 387658d64c..ff5db2e1b4 100644 --- a/src/common.js +++ b/src/common.js @@ -803,10 +803,8 @@ tip = Sao.i18n.gettext('By: ') + users.join(Sao.i18n.gettext(', ')); } - counter.data('toggle', 'tooltip'); counter.text(users.length || ''); counter.attr('title', tip); - counter.tooltip(); }.bind(this)); } diff --git a/src/screen.js b/src/screen.js index 09f05cf98b..fd0c6d2011 100644 --- a/src/screen.js +++ b/src/screen.js @@ -45,7 +45,8 @@ var but_submit = jQuery('