From 4673397b727680c83a7c554295371d77927e2a02 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Sat, 28 Feb 2026 12:32:30 +0200 Subject: [PATCH 1/3] a11y: make the sidebar button a {% endif %}{% endblock %} diff --git a/sphinx/themes/classic/static/classic.css.jinja b/sphinx/themes/classic/static/classic.css.jinja index 24b67fa76ed..255c8d11fed 100644 --- a/sphinx/themes/classic/static/classic.css.jinja +++ b/sphinx/themes/classic/static/classic.css.jinja @@ -160,10 +160,12 @@ div.sphinxsidebar input { background-color: {{ theme_sidebarbtncolor }}; margin-{{side}}: 0; color: #FFFFFF; + border: none; border-{{side}}: 1px solid {{ theme_relbarbgcolor }}; + font: inherit; font-size: 1.2em; cursor: pointer; - padding-top: 1px; + padding: 1px 0 0; float: {{ 'left' if theme_rightsidebar|tobool else 'right' }}; display: table; /* for vertically centering the */ } diff --git a/sphinx/themes/pyramid/static/epub.css.jinja b/sphinx/themes/pyramid/static/epub.css.jinja index cef087ced01..a6460d4cb18 100644 --- a/sphinx/themes/pyramid/static/epub.css.jinja +++ b/sphinx/themes/pyramid/static/epub.css.jinja @@ -142,7 +142,7 @@ div.sphinxsidebar input { {% if theme_collapsiblesidebar|tobool %} /* for collapsible sidebar */ -div#sidebarbutton { +#sidebarbutton { background-color: {{ theme_sidebarbtncolor }}; } {% endif %} From b80109e8549cad6d4a5a020c1593a90a827c2df4 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Fri, 6 Mar 2026 17:29:12 +0200 Subject: [PATCH 2/3] Add to changelog --- CHANGES.rst | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 6f7279e8011..42c12e40c08 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,29 @@ +Release 9.2.0 (in development) +============================== + +Dependencies +------------ + +Incompatible changes +-------------------- + +* #14326: The sidebar button in the classic theme has changed from a ``
`` + to a `` {% endif %}{% endblock %}