Skip to content

Commit 134618a

Browse files
committed
GitHub: Fix table lists in issue listings, etc. broken by recent GitHub update.
1 parent 69535ee commit 134618a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

GitHubA11yFixes.user.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,13 @@ function onNodeAdded(target) {
9696
onSelectMenuItemChanged(elem);
9797
}
9898
// Table lists; e.g. in issue listings.
99-
for (elem of target.querySelectorAll(".table-list"))
99+
for (elem of target.querySelectorAll(".Box-body"))
100100
elem.setAttribute("role", "table");
101-
for (elem of target.querySelectorAll(".table-list-item"))
101+
for (elem of target.querySelectorAll(".d-table"))
102+
elem.setAttribute("role", "presentation");
103+
for (elem of target.querySelectorAll(".Box-body-row"))
102104
elem.setAttribute("role", "row");
103-
for (elem of target.querySelectorAll(".table-list-cell"))
105+
for (elem of target.querySelectorAll(".d-table-cell"))
104106
elem.setAttribute("role", "cell");
105107
// Tables in Markdwn content get display: block, which causes them not to be treated as tables.
106108
for (elem of target.querySelectorAll(".markdown-body table"))

0 commit comments

Comments
 (0)