Skip to content

Commit

Permalink
Add aria attributes to interactive time tooltips. Fixes go-gitea#23645.
Browse files Browse the repository at this point in the history
  • Loading branch information
fsologureng committed Mar 23, 2023
1 parent df41181 commit a5c09d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/modules/tippy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a5c09d5

Please sign in to comment.