Skip to content

🎨 Palette: Improve password input accessibility#89

Open
nkissick-del wants to merge 1 commit intomainfrom
palette-input-a11y-9249884240414342064
Open

🎨 Palette: Improve password input accessibility#89
nkissick-del wants to merge 1 commit intomainfrom
palette-input-a11y-9249884240414342064

Conversation

@nkissick-del
Copy link
Copy Markdown
Owner

@nkissick-del nkissick-del commented Feb 6, 2026

💡 What: Added accessibility attributes (aria-label and aria-pressed) to the password visibility toggle button in the Input component.
🎯 Why: Screen reader users could not determine the purpose or state of the password toggle button.
♿ Accessibility:
- Added aria-label switching between "Show password" and "Hide password".
- Added aria-pressed to indicate current state.


PR created automatically by Jules for task 9249884240414342064 started by @nkissick-del


Summary by cubic

Improve password input accessibility by adding screen reader labels and state to the visibility toggle in the Input component. The button now uses a dynamic aria-label (“Show password”/“Hide password”) and aria-pressed, with new i18n keys added to the English locale.

Written for commit 3ca6c3a. Summary will update on new commits.

- Add `showPassword` and `hidePassword` translation keys to `web/src/locales/en.ts`.
- Update `Input` component in `web/src/components/ui/input.tsx` to use these keys for `aria-label`.
- Add `aria-pressed` state to the password toggle button.
- Initialize `useTranslation` hook within `Input` component (import was already present).

Co-authored-by: nkissick-del <236767245+nkissick-del@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant