Skip to content

Commit 0d40580

Browse files
committed
GitHub: Use menuitemcheckbox instead of menuitem for checkable menu items so they work in Chrome (and as per the ARIA spec; oops).
1 parent 6b9fcac commit 0d40580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitHubA11yFixes.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function onNodeAdded(target) {
103103
// Site-wide stuff.
104104
// Checkable menu items; e.g. in watch and labels pop-ups.
105105
for (elem of target.querySelectorAll(".select-menu-item")) {
106-
elem.setAttribute("role", "menuitem");
106+
elem.setAttribute("role", "menuitemcheckbox");
107107
onSelectMenuItemChanged(elem);
108108
}
109109
// Table lists; e.g. in issue and commit listings.

0 commit comments

Comments
 (0)