Description
When I enable a screen reader software and select a menu item from a Menu, the expanded menu stays open even though a new page is loaded. I expect the menu to close when a menu item is selected.
Reproduction
https://carbon.sage.com/?path=/story/menu--default-story
Steps to reproduce
VoiceOver for MacOS
- Enable VoiceOver
- Navigate to menu
- Select and expand menu
- Navigate to any menu item
- Select menu item - Ctrl + Opt + Spacebar
NVDA for Windows
- Enable NVDA
- Navigate to menu
- Select and expand menu
- Navigate to any menu item
- Select menu item - 'Enter' key
JIRA ticket numbers (Sage only)
SBS-102689
Suggested solution
No response
Carbon version
135.1.0
Design tokens version
4.34.0
Relevant browsers
Chrome, Safari
Relevant OSs
MacOS, Windows
Additional context
Using 'Tab' and 'Enter' keys when screen reader isn't enabled closes the menu as expected when a menu item is selected
Confidentiality