Skip to content

Commit 6918a17

Browse files
committed
Add aria roles for theme picker menu
1 parent ac3a434 commit 6918a17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/layout.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ pub fn render<T: Print, S: Print>(
7979
{sidebar}\
8080
</nav>\
8181
<div class=\"theme-picker\">\
82-
<button id=\"theme-picker\" aria-label=\"Pick another theme!\">\
82+
<button id=\"theme-picker\" aria-label=\"Pick another theme!\" aria-haspopup=\"menu\">\
8383
<img src=\"{static_root_path}brush{suffix}.svg\" \
8484
width=\"18\" \
8585
alt=\"Pick another theme!\">\
8686
</button>\
87-
<div id=\"theme-choices\"></div>\
87+
<div id=\"theme-choices\" role=\"menu\"></div>\
8888
</div>\
8989
<script src=\"{static_root_path}theme{suffix}.js\"></script>\
9090
<nav class=\"sub\">\

0 commit comments

Comments
 (0)