mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 01:24:39 +02:00
Backport #38957 Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
1 parent
11de54dd41
commit
f4bff43d46
3 files changed
+3
-4
No files matched your search
@@ -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