mirror of
https://github.com/welpo/tabi.git
synced 2025-10-10 23:38:53 +02:00
🌐 fix(theme-switcher): properly translate aria-label (#192)
Co-authored-by: Tim Böttcher <tim.boettcher2@rwth-aachen.de> Co-authored-by: welpo <welpo@users.noreply.github.com>
This commit is contained in:
parent
ab38f8434c
commit
2eaee6557c
3 changed files with 2 additions and 3 deletions
|
@ -32,7 +32,6 @@ function switchTheme() {
|
|||
// Initialize the theme switcher button.
|
||||
themeSwitcher.addEventListener("click", switchTheme, false);
|
||||
themeSwitcher.setAttribute("role", "button");
|
||||
themeSwitcher.setAttribute("aria-label", "Toggle dark mode");
|
||||
let togglePressed = currentTheme === "dark" ? "true" : "false";
|
||||
themeSwitcher.setAttribute("aria-pressed", togglePressed);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue