Skip to content

Commit d10c88a

Browse files
committed
GitHub: Fix commit listing tables regressed by 134618a.
1 parent d9478e3 commit d10c88a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

GitHubA11yFixes.user.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ function onNodeAdded(target) {
9898
elem.setAttribute("role", "menuitem");
9999
onSelectMenuItemChanged(elem);
100100
}
101-
// Table lists; e.g. in issue listings.
102-
for (elem of target.querySelectorAll(".Box-body"))
101+
// Table lists; e.g. in issue and commit listings.
102+
for (elem of target.querySelectorAll(".table-list,.Box-body"))
103103
elem.setAttribute("role", "table");
104104
for (elem of target.querySelectorAll(".d-table"))
105105
elem.setAttribute("role", "presentation");
106-
for (elem of target.querySelectorAll(".Box-body-row"))
106+
for (elem of target.querySelectorAll(".table-list-item,.Box-body-row"))
107107
elem.setAttribute("role", "row");
108-
for (elem of target.querySelectorAll(".d-table-cell"))
108+
for (elem of target.querySelectorAll(".table-list-cell,.d-table-cell"))
109109
elem.setAttribute("role", "cell");
110110
// Tables in Markdwn content get display: block, which causes them not to be treated as tables.
111111
for (elem of target.querySelectorAll(".markdown-body table"))

0 commit comments

Comments
 (0)