Skip to content

Commit

Permalink
Improve the screen-reader label for sidebar collapse
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Apr 13, 2023
1 parent 48c0bf2 commit e7f732e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/furo/navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_navigation_tree(toctree_html: str) -> str:
"div",
attrs={"class": "visually-hidden"},
)
screen_reader_label.string = "Toggle child pages in navigation"
screen_reader_label.string = f"Toggle navigation of {element.find('a').text}"
label.append(screen_reader_label)
label.append(_get_navigation_expand_image(soup))

Expand Down

0 comments on commit e7f732e

Please sign in to comment.