fix(ios): prevent VoiceOver from announcing 'double tap to activate' on headings#650
Open
hggzm wants to merge 1 commit intomicrosoft:mainfrom
Open
fix(ios): prevent VoiceOver from announcing 'double tap to activate' on headings#650hggzm wants to merge 1 commit intomicrosoft:mainfrom
hggzm wants to merge 1 commit intomicrosoft:mainfrom
Conversation
…on headings TextBlock elements were always rendered with userInteractionEnabled=YES and selectable=YES, even when they contained no links or selectAction. This caused VoiceOver to announce 'double tap to activate' on headings and other static text blocks where no action would be performed. Now only enables user interaction when the text block contains HTML content (which may have links). Plain text blocks are marked as non-interactive, preventing the misleading hint. Fixes microsoft#170
Collaborator
Author
VoiceOver Accessibility ValidationAutomated a11y pipeline validates this fix using real UIAccessibility API data. Annotated A11y Overlay
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fork-based PR (no Azure Pipelines CI). When ready for CI, push branch to upstream as
users/hggzm/clean/fix-heading-activatable-170and recreate.History: upstream PRs #619 (closed)
Summary
VoiceOver was announcing "double tap to activate" on TextBlock headings and other static text elements that had no associated action. This happened because all TextBlocks were rendered with
userInteractionEnabled = YESandselectable = YES, even when they contained no HTML links or selectAction.Changes
selectable = YESanduserInteractionEnabled = YESthat were set outside the HTML rendering block. For non-HTML text blocks (plain text without links), the view is now explicitly set as non-interactive (selectable = NO,userInteractionEnabled = NO), preventing the misleading "double tap to activate" hint. HTML text blocks with links still retain interactivity.Before
VoiceOver announces: "Adaptive Cards Product Video, heading, double tap to activate"
After
VoiceOver announces: "Adaptive Cards Product Video, heading"
Testing