Skip to content

Commit dc4a286

Browse files
Fix navigation bar accessibility for screen readers (#4661)
Added AutomationProperties.SetName to the CustomNavViewItem control to ensure screen readers correctly announce the localized names for navigation options like 'Software Updates' and 'Installed Packages'.
1 parent 5d8de3c commit dc4a286

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/UniGetUI/Controls/CustomNavViewItem.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Microsoft.UI.Xaml;
2+
using Microsoft.UI.Xaml.Automation;
23
using Microsoft.UI.Xaml.Controls;
34
using UniGetUI.Core.Tools;
45
using UniGetUI.Interface;
@@ -47,6 +48,7 @@ public string Text
4748
string text = CoreTools.Translate(value);
4849
_textBlock.Text = text;
4950
ToolTipService.SetToolTip(this, text);
51+
AutomationProperties.SetName(this, text);
5052
}
5153
}
5254

0 commit comments

Comments
 (0)