0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-14 02:24:00 +01:00
Bootstrap/site/layouts/partials
Patrick H. Lauke 212c0dfd07
Docs: Make theme switcher accessible (#37780)
* Make theme switcher accessible

* set an explicit `aria-label` to the switcher (as the `<span>` 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

* Dynamically update aria-label for theme switcher

* Explicitly reset focus after activating theme

* Use innerText for the constructed dynamic aria-label

this way, if the text ever gets changed in the html, this will adapt appropriately

* Tweak accessible name for the dropdown

* Fixup

* Use `textContent` instead of `innerText`
2023-01-01 21:54:46 -08:00
..
callouts Docs: organize callouts in partials (#37320) 2022-10-16 18:09:33 +02:00
home Drop logo on homepage on mobile 2022-12-26 11:03:32 -08:00
icons Remove Slack from site and repo docs (#36825) 2022-07-25 15:47:14 -07:00
ads.html Switch to Hugo. 2019-03-13 19:22:59 +02:00
analytics.html Add Fathom Analytics 2022-05-13 19:44:01 +03:00
docs-navbar.html Docs: Make theme switcher accessible (#37780) 2023-01-01 21:54:46 -08:00
docs-sidebar.html Fix a11y keyboard access to docs navigation (#36340) 2022-05-13 19:28:55 +03:00
docs-versions.html Release v5.3.0-alpha1 (#37661) 2022-12-24 18:37:22 +02:00
favicons.html v5.2.0 design refresh, plus responsive offcanvas classes (#35736) 2022-04-17 22:17:50 -07:00
footer.html Add dark mode support (#35857) 2022-11-28 22:30:26 -08:00
guide-footer.md Rewrite Parcel guide (#36411) 2022-05-22 17:47:01 -07:00
header.html docs: move color-mode script (#37658) 2022-12-18 14:32:17 -07:00
icons.html Remove title from 'check2' icon SVG (#37568) 2022-11-30 22:59:26 +01:00
js-data-attributes.md Add some details on "javascript" page (#36363) 2022-05-27 19:06:07 -07:00
redirect.html Move redirect layout into partial 2020-11-17 15:54:47 +02:00
scripts.html Fix StackBlitz examples needing docs CSS (#36637) 2022-06-28 07:31:47 +02:00
skippy.html docs(skip links): new powers for .visually-hidden-focusable 2020-12-15 09:22:14 +02:00
social.html docs: improve social image partial (#37717) 2022-12-25 18:14:27 +02:00
stylesheet.html v5.2.0: Migrate to DocSearch 3 (#36176) 2022-05-06 16:56:43 -07:00
table-content.html Prevent nested tables style leaks 2020-04-24 10:05:10 +02:00