Skip to content

Commit e619e23

Browse files
authored
Make filenames h2s
1 parent c46b381 commit e619e23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

GitHubA11yFixes.user.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ const DYNAMIC_TWEAKS = [
163163
// Remove headings from folder and file lists.
164164
{selector: 'table[aria-labelledby=folders-and-files] :is(h2, h3)',
165165
tweak: makePresentational},
166+
// Make filenames of files in the diff viewer headings.
167+
{selector: '.file-header .file-info .Truncate:has(.Link--primary)',
168+
tweak: el => makeHeading(el, 2)},
166169
];
167170

168171
/*** Lights, camera, action! ***/

0 commit comments

Comments
 (0)