I have this menu whose items toggle a dropdown under it. These dropdowns are initially hidden and can contain anything, sub-menus mostly. Being initially hidden, the contents of the dropdowns aren't read during the screen reader's initial pass on page load - this is fine.
During page load, the screen reader reads the entire page. It reads when you enter and exit regions, lists, etc. Visible menus on other regions of the page are read like:
Navigation region, List of N items...
followed by every item in the list.
The problem: When I open the dropdowns and tab through the menus within them, the screen reader does not read the dropdown content the same way as during page load. When tabbing in, it simply reads the focused item. When aria-live
is set and the dropdown is toggled, it reads the entire dropdown like one long concatenated string.
How do I do it so that upon toggling of the dropdown, the screen reader reads all the content of the dropdown in the same way as it did during pageload?