From c8ef0fc94fd398fa1531ebf91467e16395c698cd Mon Sep 17 00:00:00 2001 From: Tobias Bengfort Date: Tue, 23 Feb 2021 18:20:37 +0100 Subject: [PATCH] Fix aria label (#1056) * Do not use the landmark role as part of the label See https://www.w3.org/TR/wai-aria-practices/#general-principles-of-landmark-design * translate aria-labels --- docs/_templates/layout.html | 2 +- sphinx_rtd_theme/breadcrumbs.html | 4 ++-- sphinx_rtd_theme/footer.html | 2 +- sphinx_rtd_theme/layout.html | 4 ++-- sphinx_rtd_theme/versions.html | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index db88cb1c..08e1520d 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -10,7 +10,7 @@ Docs. This is for local testing purposes only. {% block footer %} {% if not READTHEDOCS %} -
+
Read the Docs v: latest diff --git a/sphinx_rtd_theme/breadcrumbs.html b/sphinx_rtd_theme/breadcrumbs.html index c27dcf4e..7d71c5d6 100644 --- a/sphinx_rtd_theme/breadcrumbs.html +++ b/sphinx_rtd_theme/breadcrumbs.html @@ -26,7 +26,7 @@ {% set display_vcs_links = display_vcs_links if display_vcs_links is defined else True %} -
+
    {% block breadcrumbs %} @@ -71,7 +71,7 @@
{% if (theme_prev_next_buttons_location == 'top' or theme_prev_next_buttons_location == 'both') and (next or prev) %} -