Skip to content

Commit 5a8ac5e

Browse files
committed
Pandora: Set aria-haspopup on Track options.
1 parent 9774b32 commit 5a8ac5e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PandoraA11yFixes.user.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ function init() {
113113
node.setAttribute("aria-label", "Buy");
114114
}
115115
if (node = document.getElementsByClassName("cd_activator")[0]) {
116-
node.firstChild.setAttribute("role", "button");
117-
node.firstChild.setAttribute("aria-label", "Track options");
116+
node = node.firstChild;
117+
node.setAttribute("role", "button");
118+
node.setAttribute("aria-haspopup", "true");
119+
node.setAttribute("aria-label", "Track options");
118120
}
119121
}
120122

0 commit comments

Comments
 (0)