Skip to content

Commit 0cdcc4a

Browse files
Fix Hyperlink UIA Name including control type on Text page
The Hyperlink sample on the Text > Hyperlink page used 'Hyperlink' as its visible text, so its UI Automation Name matched its LocalizedControlType, violating WCAG/MAS 4.1.2 (Name, Role, Value). Change the link text to 'Microsoft' (its navigation target) so the Name is meaningful and no longer repeats the control type. Also update the displayed XamlCode snippet to match. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0238f8a commit 0cdcc4a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sample Applications/WPFGallery/Views/Text/HyperlinkPage.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
<controls:ControlExample
2323
Margin="10"
2424
HeaderText="A Hyperlink"
25-
XamlCode="&lt;TextBlock Margin=&quot;20&quot;&gt;&#10; &lt;Hyperlink NavigateUri=&quot;https://www.microsoft.com&quot; RequestNavigate=&quot;Hyperlink_RequestNavigate&quot;&gt;&#10; Lorem Ipsum link&#10; &lt;/Hyperlink&gt;&#10;&lt;/TextBlock&gt;">
25+
XamlCode="&lt;TextBlock Margin=&quot;20&quot;&gt;&#10; &lt;Hyperlink NavigateUri=&quot;https://www.microsoft.com&quot; RequestNavigate=&quot;Hyperlink_RequestNavigate&quot;&gt;&#10; Microsoft&#10; &lt;/Hyperlink&gt;&#10;&lt;/TextBlock&gt;">
2626
<TextBlock Margin="20">
2727
<Hyperlink NavigateUri="https://www.microsoft.com" RequestNavigate="Hyperlink_RequestNavigate">
28-
Hyperlink
28+
Microsoft
2929
</Hyperlink>
3030
</TextBlock>
3131
</controls:ControlExample>

0 commit comments

Comments
 (0)