Update NavigationView to meet MAS 4.1.2
See original GitHub issueDescribe the bug
When testing our app accessibility, we had a bug assigned to us where the control type reported by the accessibility tool is not the expected one for NavigationViewItem and was breaking WCAG rule 4.1.2.
The NavigationViewItem are reporting a ListItem control type whereas they should report TabItem.
According to the AutomationControlType documentation we have:
- ListItem: A list item control, which is a child item of a list control.
- TabItem: A tab item control, which represents a page of a tab control.
TabItem is a better fit for the navigation items.
Steps to reproduce the bug
- Create an application with a navigation view with one or more navigation item.
- Run the application
- Run accessibility insights tool or the Windows narrator
Expected behavior
The NavigationViewItem should report AutomationControlType.TabItem as their control type
Screenshots

Version Info NuGet package version: Microsoft.UI.Xaml 2.2.190917002
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Understanding Success Criterion 4.1.2: Name, Role, Value
This success criterion is primarily for Web authors who develop or script their own user interface components. For example, standard HTML controls already...
Read more >Untitled
C5 06 charging solution, Ghpgvntn que nha, John whelpdale, Gksi jawa timur, Gewonde vrouw den dungen, I997 firmware 4.1.2, Hp proliant dl320 g5...
Read more >MASCHINE 2 Getting Started English
MASCHINE allows you to change the color of each Group or Sound. It can be very useful to see at a glance to...
Read more >Notas de Moodle 4.0 - MoodleDocs
MDL-69371 - Redesign the Moodle login page (also see MDL-72928) · MDL-71457 - Update the Moodle activity icons · MDL-71963 - Turn confirmation...
Read more >BlueJ Version History
Editor: Added editor navigation view; Editor: Added editor auto-indent function; Editor: Introduced scope highlighting; Editor: Improved find/replace ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

So the change would be: change the role dynamically; ListItem in left nav and TabItem in top nav?
If they perform a navigation, they behave like tabs.
If they display a flyout, they behave more like menu items.