diff --git a/content-script.js b/content-script.js index a3818b6..e7d7913 100644 --- a/content-script.js +++ b/content-script.js @@ -474,7 +474,8 @@ action === "calendar-prev" || action === "calendar-next" || action === "calendar-today" || - action === "toggle-sidebar" + action === "toggle-sidebar" || + action === "toggle-theme" ) { return `[data-action="${action}"]`; } @@ -530,9 +531,16 @@ type="button" class="arch-panel-extension-theme-toggle" data-action="toggle-theme" - aria-label="Toggle dashboard theme" + aria-label="${appState.theme === "dark" ? "Switch to light mode" : "Switch to dark mode"}" + title="${appState.theme === "dark" ? "Switch to light mode" : "Switch to dark mode"}" > - ${appState.theme === "dark" ? "Light mode" : "Dark mode"} +