diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 00000000..4cbb6cd4 --- /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 a0cbd741..798e4919 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. +