From 68e24b22d7926d41b56a1f02c9b49842c22c35c1 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Mon, 2 Jan 2023 00:50:28 +0000 Subject: [PATCH 1/7] Make theme switcher accessible * set an explicit `aria-label` to the switcher (as the `` is not sufficient, as it can be display:none'd and then the button has no accName) * make the theme buttons actual `aria-pressed` toggles --- site/layouts/partials/docs-navbar.html | 9 +++++---- site/static/docs/5.3/assets/js/color-modes.js | 2 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/site/layouts/partials/docs-navbar.html b/site/layouts/partials/docs-navbar.html index 4b942a65e7c8..e38ad17425b0 100644 --- a/site/layouts/partials/docs-navbar.html +++ b/site/layouts/partials/docs-navbar.html @@ -90,27 +90,28 @@
Bootstrap
+ data-bs-display="static" + aria-label="Toggle theme"> Toggle theme