bug(menuitem - accessibility): Role menuitem is not announced by screen readers
Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
Even though the menuitem role is added by default to the mat-menu-item, this is not reading by the screen readers like NVDA.
For eg:- https://www.geeksforgeeks.org/mat-menu-in-angular-material/
Reproduction
StackBlitz link: Steps to reproduce:
- Turn on NVDA
- Click/tab on the menu item
- Navigate through the menu items using up/down keyboard arrows
Expected Behavior
The role menuitem should be announced by the screenreaders as it is present in the html while inspecting
Actual Behavior
Even though role is present in html, it is not announced by screen readers
Environment
The issue can be reproduced in angular material sites also. Below are my project configurations in the local machine
- Angular: ~13.0.1
- CDK/Material: ~13.0.0
- Browser(s): Chrome, Edge
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
Hello @DhanyaGopinathTR,
Thank you for reporting accessibility issues. I believe this may be how NVDA works and not an issue with Angular components. I believe that NVDA knows that the role is menuitem, but it chooses not to announce the role for each item.
https://github.com/nvaccess/nvda/issues/8654
reference implementation for comparison: https://www.w3.org/WAI/ARIA/apg/patterns/menubar/examples/menubar-navigation/
-Zach
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.