From 87f0f7e670c6c0e6aeab8c4458bfdb9d954eacec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Leopoldo=20Sologuren=20Guti=C3=A9rrez?= Date: Fri, 24 Mar 2023 06:43:52 -0300 Subject: [PATCH] Add aria attributes to interactive time tooltips. (#23661) Fixes #23645 * Added `describedby` attribute to the reference element. * Eliminated `aria-expanded` attribute to the reference element in order to conform strictly with WCAG 2.1 rules. --- web_src/js/modules/tippy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/modules/tippy.js b/web_src/js/modules/tippy.js index 98d0ff84b6..1f7a0eaf4f 100644 --- a/web_src/js/modules/tippy.js +++ b/web_src/js/modules/tippy.js @@ -44,7 +44,7 @@ function attachTooltip(target, content = null) { delay: 100, role: 'tooltip', placement: target.getAttribute('data-tooltip-placement') || 'top-start', - ...(target.getAttribute('data-tooltip-interactive') === 'true' ? {interactive: true} : {}), + ...(target.getAttribute('data-tooltip-interactive') === 'true' ? {interactive: true, aria: {content: 'describedby', expanded: false}} : {}), }; if (!target._tippy) {