Skip to content

Commit 87f0f7e

Browse files
authored
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.
1 parent d02e83a commit 87f0f7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/modules/tippy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function attachTooltip(target, content = null) {
4444
delay: 100,
4545
role: 'tooltip',
4646
placement: target.getAttribute('data-tooltip-placement') || 'top-start',
47-
...(target.getAttribute('data-tooltip-interactive') === 'true' ? {interactive: true} : {}),
47+
...(target.getAttribute('data-tooltip-interactive') === 'true' ? {interactive: true, aria: {content: 'describedby', expanded: false}} : {}),
4848
};
4949

5050
if (!target._tippy) {

0 commit comments

Comments
 (0)