Skip to content

Commit b1e9cd0

Browse files
committed
GitHub: Don't make commit listings into tables, as they aren't really. Make commit group headers into headings.
1 parent 9c0f2e2 commit b1e9cd0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

GitHubA11yFixes.user.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ const DYNAMIC_TWEAKS = [
143143
// way to separate the header from the body.
144144
{selector: '.TimelineItem:not(.js-commit) .TimelineItem-body:not(.my-0):not([id^="ref-commit-"])',
145145
tweak: [makeHeading, 3]},
146-
// Table lists; e.g. in issue and commit listings.
147-
{selector: '.js-navigation-container',
146+
// Issue listing tables.
147+
{selector: '.js-navigation-container:not(.commits-listing)',
148148
tweak: el => el.setAttribute("role", "table")},
149149
{selector: '.Box-row',
150150
tweak: el => el.setAttribute("role", "row")},
@@ -157,6 +157,9 @@ const DYNAMIC_TWEAKS = [
157157
cell.setAttribute("role", "cell");
158158
}
159159
}},
160+
// Commit group headers in commit listings.
161+
{selector: '.commit-group-title',
162+
tweak: [makeHeading, 2]},
160163
];
161164

162165
/*** Lights, camera, action! ***/

0 commit comments

Comments
 (0)