Skip to content

🎨 Palette: Improve password toggle accessibility - #488

Merged
2fst4u merged 1 commit into
mainfrom
palette-improve-password-toggle-a11y-4120395144574641318
Aug 3, 2026
Merged

🎨 Palette: Improve password toggle accessibility#488
2fst4u merged 1 commit into
mainfrom
palette-improve-password-toggle-a11y-4120395144574641318

Conversation

@2fst4u

@2fst4u 2fst4u commented Aug 3, 2026

Copy link
Copy Markdown
Owner

💡 What: Replaced dynamic :aria-label attributes on the three password visibility toggle buttons (login, current password, new password) with inner visually hidden <span class="sr-only"> elements whose text updates dynamically via Alpine.js.

🎯 Why: To ensure screen readers explicitly announce the active state dynamically ("Show password" vs. "Hide password") and to improve internationalization, as standard aria-label attributes are frequently ignored by automated translation tools.

📸 Before/After: Visual layout remains completely unaffected.

♿ Accessibility: The active state of the icon-only toggle button is now robustly conveyed to screen readers and translation tools via actual DOM text content inside an .sr-only span.


PR created automatically by Jules for task 4120395144574641318 started by @2fst4u

Co-authored-by: 2fst4u <15257926+2fst4u@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 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.

@2fst4u
2fst4u merged commit cf6c72e into main Aug 3, 2026
2 checks passed
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