Skip to content

Fix: TalkBack announces both Link and Button roles for OpenUrl actions#519

Open
hggzm wants to merge 1 commit intomicrosoft:mainfrom
hggzm:clean/fix-openurl-duplicate-role
Open

Fix: TalkBack announces both Link and Button roles for OpenUrl actions#519
hggzm wants to merge 1 commit intomicrosoft:mainfrom
hggzm:clean/fix-openurl-duplicate-role

Conversation

@hggzm
Copy link
Copy Markdown
Collaborator

@hggzm hggzm commented Mar 3, 2026

Problem

When TalkBack focuses on an OpenUrl action element, it announces both "Link" and "Button" roles, creating a confusing experience for screen reader users.

Solution

Set roleDescription="Link" and clear the Button className on OpenUrl action elements so TalkBack only announces the "Link" role.

Changes

  • ActionElementRenderer.java: Added roleDescription "Link" and cleared Button className for OpenUrl actions

Testing

  • Verified with TalkBack on Android that OpenUrl actions announce only "Link" role
  • Other action types (Submit, Execute) remain unaffected

…l\n\nOpenUrl actions had contentDescription with 'link' appended AND the Button widget\nclass, causing TalkBack to announce both roles. Now uses roleDescription=Link\nand clears the Button className.\n\nFixes upstream#492
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