We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e457e8 commit cd10d7aCopy full SHA for cd10d7a
deps/rabbitmq_management/priv/www/js/theme-switcher.js
@@ -56,7 +56,9 @@ function initializeSwitcher() {
56
}
57
58
setScheme(newScheme);
59
- switcherButtons[0].setAttribute("x-scheme", newScheme);
+ button.setAttribute("x-scheme", newScheme);
60
+ button.setAttribute("title", `Switch between dark and light mode (currently ${newScheme} mode)`);
61
+ button.setAttribute("aria-label", `Switch between dark and light mode (currently ${newScheme} mode)`);
62
});
63
64
0 commit comments