Add ARIA role to sidebar toggle in Rustdoc
This indicates that the div is an interactive element, and makes the sidebar toggle "clickable" in assistive technologies. Fixes #82582
This commit is contained in:
parent
0846043440
commit
e026e18e3f
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ crate fn render<T: Print, S: Print>(
|
|||
<![endif]-->\
|
||||
{before_content}\
|
||||
<nav class=\"sidebar\">\
|
||||
<div class=\"sidebar-menu\">☰</div>\
|
||||
<div class=\"sidebar-menu\" role=\"button\">☰</div>\
|
||||
{logo}\
|
||||
{sidebar}\
|
||||
</nav>\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue