Skip to content

fix(toggle): ensure proper visual selection when navigating via VoiceOver in Safari #30349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 11, 2025

Conversation

ShaneK
Copy link
Member

@ShaneK ShaneK commented Apr 10, 2025

Issue number: resolves internal


What is the current behavior?

Currently, MacOS voice over on Safari does not recognize ion-toggle correctly and fails to highlight the element properly

What is the new behavior?

By adding the role property to the host element, we're correctly identifying the toggle so Safari knows how to handle it.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@ShaneK ShaneK requested a review from a team as a code owner April 10, 2025 13:28
@ShaneK ShaneK requested a review from thetaPC April 10, 2025 13:28
Copy link

vercel bot commented Apr 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 11, 2025 1:25pm

@github-actions github-actions bot added the package: core @ionic/core package label Apr 10, 2025
@ShaneK ShaneK changed the title fix(toggle): ensure proper visual selection when navigating via Voice… fix(toggle): ensure proper visual selection when navigating via VoiceOver in Safari Apr 10, 2025
Copy link
Contributor

@thetaPC thetaPC left a comment

Choose a reason for hiding this comment

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

Seems to be working. There is no focused state on toggle like checkbox has, which makes it hard to determine if I'm truly on the the component. How much work would it take to try to add the focus ring that checkbox has?

Screenshot 2025-04-10 at 1 41 15 PM

@ShaneK
Copy link
Member Author

ShaneK commented Apr 11, 2025

Turns out, it was pretty easy. Was worried that I'd need to update screenshots, but nope.

Copy link
Contributor

@thetaPC thetaPC left a comment

Choose a reason for hiding this comment

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

LGTM

@thetaPC thetaPC requested a review from brandyscarney April 11, 2025 16:04
@ShaneK ShaneK added this pull request to the merge queue Apr 11, 2025
Merged via the queue into main with commit b1bc58f Apr 11, 2025
50 checks passed
@ShaneK ShaneK deleted the FW-6409 branch April 11, 2025 17:28
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