Skip to content
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

[BUG] Hyperlink text gets repeated using JAWS or NVDA #1711

Open
DaveTryon opened this issue Sep 28, 2023 · 0 comments
Open

[BUG] Hyperlink text gets repeated using JAWS or NVDA #1711

DaveTryon opened this issue Sep 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@DaveTryon
Copy link
Contributor

DaveTryon commented Sep 28, 2023

Describe the bug
Hyperlinks throughout the app use the default WPF hyperlink, which causes both NVDA and JAWS to repeat the text in the link. Using the "Learn more about inspect" link from the inspect string, the UIA tree shows a non-focusable Text control with a Name of "Learn more about inspect". This Text control has a focusable Hyperlink child whose name defaults to the visible text, so its Name is also "Learn more about inspect".

When an AT reads this, it reads the Text's Name, followed by the Hyperlink's name, followed by the type. This translates to "Learn more about inspect, Learn more about inspect Link"

It reads correctly if we set either of the Name properties to just a whitespace string, but that causes the "no whitespace" rule to fail. It might be possible to split the names between the controls, maybe "Learn more" for the Text control and "about inspect" for the Hyperlink, but that's really a hack and it wouldn't be an option for links with a Name that consists of a single word.

To Reproduce
Steps to reproduce the behavior:

  1. Start AIWin
  2. Pause it in inspect mode, so the inspect mode text is displayed
  3. Read the links on the inspect page using either NVDA or JAWS
  4. Note that link text is repeated. Ideally it would not be repeated

Desktop (please complete the following information):

  • OS: Windows 11 22H2
  • Accessibility Insights for Windows Version: 1.1.2459.1

Additional context
Filing this to have it documented. There are about 25 Hyperlinks spread throughout the app, so a single-location fix (maybe a link class that uses a custom AutomationPeer) would allow us to address this throughout the application

@DaveTryon DaveTryon added the bug Something isn't working label Sep 28, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the status: new This issue is new and requires triage by DRI. label Sep 28, 2023
@DaveTryon DaveTryon changed the title [BUG] Hyperlink text gets repeated throughout the app [BUG] Hyperlink text gets repeated using JAWS or NVDA Sep 28, 2023
@madalynrose madalynrose moved this from Needs triage to Tabled in Accessibility Insights Oct 2, 2023
@DaveTryon DaveTryon removed the status: new This issue is new and requires triage by DRI. label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants