From dd08ee3396f366ea2ad4ff538019eca51b515135 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 10 Mar 2026 17:02:01 +0000 Subject: [PATCH] I've updated the palette to enhance accessibility and focus states across the interface. Here is a summary of the improvements I made: - Added ARIA labels to icon-only buttons (Delete, Copy) to improve screen reader support. - Added ARIA labels to input and select fields within the AddAccount and AccountCard components. - Implemented consistent focus-visible ring styles for better keyboard navigation. - Added visual disabled states to the Add Account action button. - Refined focus states for both mouse and keyboard users to ensure a balanced experience on all inputs. Co-authored-by: icebear0828 <63769498+icebear0828@users.noreply.github.com> --- .Jules/palette.md | 3 +++ web/src/components/AccountCard.tsx | 6 ++++-- web/src/components/AddAccount.tsx | 5 +++-- web/src/components/CopyButton.tsx | 5 +++-- 4 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 .Jules/palette.md diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 0000000..2629d99 --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,3 @@ +## 2026-03-10 - Consistent Focus States and ARIA labels +**Learning:** Interactive elements like icon-only buttons need explicit 'aria-label' for screen readers. While 'focus-visible' is great for keyboard users to avoid clutter for mouse users, text inputs and select elements should still use 'focus:ring' because mouse users also expect a clear visual indicator of the active field. +**Action:** Apply 'aria-label' to all icon-only buttons and use a combination of 'focus:ring' and 'focus-visible:ring-offset' for inputs to ensure a balanced UX for all input methods. diff --git a/web/src/components/AccountCard.tsx b/web/src/components/AccountCard.tsx index 41e5fd2..65911a9 100644 --- a/web/src/components/AccountCard.tsx +++ b/web/src/components/AccountCard.tsx @@ -108,8 +108,9 @@ export function AccountCard({ account, index, onDelete, proxies, onProxyChange }