Skip to content

Conversation

@ShaneK
Copy link
Member

@ShaneK ShaneK commented Dec 22, 2025

Issue number: resolves internal


What is the current behavior?

The ion-input-password-toggle button uses role="switch" with aria-checked, causing screen readers like VoiceOver to announce both a state ("On/Off") and an action ("Show/Hide password"). This results in confusing, redundant output such as "On, Hide Password" or "Off, Show Password".

What is the new behavior?

The password toggle button now uses aria-pressed instead of role="switch" with aria-checked. Screen readers announce the action-based label ("Show password" or "Hide password") along with the pressed state, and properly announce state changes when the button is activated.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Old Preview

New Preview

Current dev build:

8.7.15-dev.11766421552.180757ca

@ShaneK ShaneK requested a review from a team as a code owner December 22, 2025 16:29
@ShaneK ShaneK requested a review from brandyscarney December 22, 2025 16:29
@vercel
Copy link

vercel bot commented Dec 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
ionic-framework Ready Ready Preview, Comment Dec 22, 2025 4:29pm

Copy link
Member

@brandyscarney brandyscarney left a comment

Choose a reason for hiding this comment

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

LGTM 🧨

@ShaneK ShaneK added this pull request to the merge queue Dec 22, 2025
Merged via the queue into main with commit 12ede4b Dec 22, 2025
67 checks passed
@ShaneK ShaneK deleted the FW-6920 branch December 22, 2025 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants