diff options
| author | Patrick H. Lauke <[email protected]> | 2023-01-02 05:54:46 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-01-01 21:54:46 -0800 |
| commit | 212c0dfd076e4e504de135b2b41647199feb3696 (patch) | |
| tree | 857059426a06653a8ab57950da4f4016b71e1e0b /.github/codeql | |
| parent | 2cc580e2d1e70d942965d54365db24fe6728ad00 (diff) | |
| download | bootstrap-212c0dfd076e4e504de135b2b41647199feb3696.tar.xz bootstrap-212c0dfd076e4e504de135b2b41647199feb3696.zip | |
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`
Diffstat (limited to '.github/codeql')
0 files changed, 0 insertions, 0 deletions
