FLyout Menu Example

Specifically the second keyboard example: "Approach 2: Use button as 
toggle".


NVDA seems to have trouble with links which have invisible (off-screen) 
content. SUggest to use the button content to hold the visual symbol / 
icon / etc, and use aria-label="show menu for space bears".


Also, the "a" element in this example should not get aria-expanded; I 
believe this is a bit misleading. IMO, should not get the aria-haspopup 
either. I think these attributes should only be present on the button 
that actually toggles the submenu.


Hope this is helpful.


-- Rich Caloggero, MIT Disability and Access Services

Received on Tuesday, 26 January 2021 18:20:39 UTC