From: Alexander Ebert Date: Tue, 23 Jun 2020 17:54:55 +0000 (+0200) Subject: Refresh the aria label when the tooltip value is updated X-Git-Tag: 5.3.0_Alpha_1~203 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=554b4765ed25efce04c2bed50fa2a2177c078f3d;p=GitHub%2FWoltLab%2FWCF.git Refresh the aria label when the tooltip value is updated --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Tooltip.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Tooltip.js index 3cdb58fed4..24adf15d0b 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Tooltip.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Tooltip.js @@ -97,6 +97,7 @@ define(['Environment', 'Dom/ChangeListener', 'Ui/Alignment'], function(Environme if (title !== '') { elData(element, 'tooltip', title); + elAttr(element, 'aria-label', title); element.removeAttribute('title'); }