]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Improve accessible name of version dropdown in docs navbar (#36495)
authorPatrick H. Lauke <redux@splintered.co.uk>
Sun, 5 Jun 2022 08:59:41 +0000 (09:59 +0100)
committerGitHub <noreply@github.com>
Sun, 5 Jun 2022 08:59:41 +0000 (09:59 +0100)
commitaf0c1d8618a70a756a820ec3c9fd8dbc4807982c
tree810cd38d4217c5451441855e3a36c48c5440167a
parent5b0bf3f49a94ca96334651eca9aeeb56d48bf144
Improve accessible name of version dropdown in docs navbar (#36495)

- add `aria-hidden="true"` to the "Bootstrap" text that is hidden on large screens
- add separate visually-hidden "Bootstrap", which will be part of the accessible name regardless of whether the other string is visible or not (on large screen)
- extra visually-hidden text to give some context - that the dropdown is about switching versions
- remove the redundant id/aria-labelledby for the dropdown
site/layouts/partials/docs-versions.html