question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update NavigationView to meet MAS 4.1.2

See original GitHub issue

Describe 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

  1. Create an application with a navigation view with one or more navigation item.
  2. Run the application
  3. Run accessibility insights tool or the Windows narrator

Expected behavior The NavigationViewItem should report AutomationControlType.TabItem as their control type

Screenshots image

Version Info NuGet package version: Microsoft.UI.Xaml 2.2.190917002

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jevansakscommented, Nov 22, 2019

So the change would be: change the role dynamically; ListItem in left nav and TabItem in top nav?

1reaction
mdtaukcommented, Nov 14, 2019

If they perform a navigation, they behave like tabs.

If they display a flyout, they behave more like menu items.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found