From e7f732ea5133d29fc6ca62af0455b16ffaab00dc Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Thu, 13 Apr 2023 16:50:57 -0500 Subject: [PATCH] Improve the screen-reader label for sidebar collapse --- src/furo/navigation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/furo/navigation.py b/src/furo/navigation.py index be69d9aff..405327be4 100644 --- a/src/furo/navigation.py +++ b/src/furo/navigation.py @@ -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))