Skip to content

Commit ab7bdb8

Browse files
committed
Monorail: Update to handle change to star control.
1 parent 00b6288 commit ab7bdb8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

MonorailA11yFixes.user.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
// ==/UserScript==
1111

1212
function fixStar(node) {
13-
node.setAttribute("role", "checkbox");
14-
node.setAttribute("aria-checked",
15-
(node.src.indexOf("star_on.gif") == -1) ? "false" : "true");
13+
node.setAttribute("aria-label", node.getAttribute("title"));
1614
}
1715

1816
function makeHeading(elem, level) {

0 commit comments

Comments
 (0)