From 07b1c024ed7d6519beefc6f8d5aca4d43ee908a8 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 16 Aug 2026 04:53:23 +0000 Subject: [PATCH 1/4] fix: add dynamic aria-labels to icon-only toggle buttons in settings Adds missing ARIA labels to icon-only buttons in AccountSettingsTab (password visibility and API token copy) and AISettingsTab (Groq API key visibility). The labels dynamically change based on the toggle state to accurately reflect the action that will be performed. Co-authored-by: endlessblink <37155282+endlessblink@users.noreply.github.com> --- .Jules/palette.md | 3 +++ src/components/settings/tabs/AISettingsTab.vue | 17 ++++++++++++----- .../settings/tabs/AccountSettingsTab.vue | 9 +++++++-- 3 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 .Jules/palette.md diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 000000000..4cbb6cd44 --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,3 @@ +## 2024-08-16 - Dynamic ARIA labels for Toggle Buttons +**Learning:** When a toggle button switches its icon based on state (e.g., Eye/EyeOff for passwords, or a generic toggle without text), a static `aria-label` is insufficient because the action the button performs changes depending on the current state. +**Action:** Use a dynamic Vue binding (`:aria-label="condition ? 'Action A' : 'Action B'"`) corresponding to the boolean state of the toggle, ensuring screen readers announce the exact action the user will perform by clicking the button. diff --git a/src/components/settings/tabs/AISettingsTab.vue b/src/components/settings/tabs/AISettingsTab.vue index a0cbd741a..798e4919f 100644 --- a/src/components/settings/tabs/AISettingsTab.vue +++ b/src/components/settings/tabs/AISettingsTab.vue @@ -587,14 +587,19 @@ async function onClearMemories() {
Full assessment available in AI Hub > Memory tab.
++ Full assessment available in AI Hub > Memory tab. +