mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-20 11:37:51 +00:00
Backport #38957 Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
@@ -133,6 +133,7 @@ function attachLazyTooltip(el: HTMLElement): void {
|
||||
let ariaLabelValue = content;
|
||||
if (isHtml) ariaLabelValue = stripTags(content).replace(/\s+/g, ' ').trim();
|
||||
el.setAttribute('aria-label', ariaLabelValue);
|
||||
el.removeAttribute('aria-hidden');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user