From a5c09d546a9fcc62ea455f944acf209cef6425c2 Mon Sep 17 00:00:00 2001 From: fsologureng Date: Thu, 23 Mar 2023 10:09:48 -0300 Subject: [PATCH] Add aria attributes to interactive time tooltips. Fixes #23645. --- 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 98d0ff84b6062..1f7a0eaf4fefb 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) {