accessibility-insights-windows icon indicating copy to clipboard operation
accessibility-insights-windows copied to clipboard

[BUG] Hyperlink text gets repeated using JAWS or NVDA

Open DaveTryon opened this issue 1 year ago • 0 comments

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 avatar Sep 28 '23 22:09 DaveTryon