We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97e5a28 commit 1baae28Copy full SHA for 1baae28
GitHubA11yFixes.user.js
@@ -60,6 +60,15 @@ function onNodeAdded(target) {
60
elem.setAttribute("role", "cell");
61
for (elem of target.querySelectorAll(".markdown-body td"))
62
63
+ // Tooltipped links (e.g. authors and labels in issue listings) shouldn't get the tooltip as their label.
64
+ for (elem of target.querySelectorAll("a.tooltipped")) {
65
+ if (!elem.textContent || /^\s+$/.test(elem.textContent))
66
+ continue;
67
+ var tooltip = elem.getAttribute("aria-label");
68
+ // This will unfortunately change the visual presentation.
69
+ elem.setAttribute("title", tooltip);
70
+ elem.removeAttribute("aria-label");
71
+ }
72
}
73
74
function onClassModified(target) {
0 commit comments