What fresh hell is THIS now? - Patrick Lauke
[frippz] I’ve been looking at using role="tooltip"
for word explanations in an ebook, but getting screen readers to optionally read such tooltips have proven difficult. Anyone have any previous experience with this?
Seems Voice Over for one only reads tooltips if they are linked with aria-describedby
on focusable elements.
I realise that using links as wrappers would work, but it offers an awful user experience with the screen reader announcing links all the time.
Is there a suggested aria mark up for mega menus anywhere??
Im using the following for a simple drop down:
<ul aria-expanded="false" aria-label="Sub Menu" id="sub-menu-1" role="menu"> <li><a href="#" aria-role="menuitem">Who we are</a></li> <li><a href="#" aria-role="menuitem">What we do</a></li> <li><a href="#" aria-role="menuitem">Why</a></li> </ul>
But im unsure of what is the best mark up for a mega menu, currently i have:
<div aria-expanded="false" aria-label="Mega Menu" id="mega-menu-1" role="menu"> <div class="mega-menu_column"> <p id="mega-menu-1_h1"><a href="#">Drivers</a></p> <ul role="menu" aria-labelledby="mega-menu-1_h1"> <li><a href="#" aria-role="menuitem">Link</a></li> </ul> </div> <div class="mega-menu_column"> <p id="mega-menu-1_h2">Iron/Combo Sets</p> <ul role="menu" aria-labelledby="mega-menu-1_h2"> <li><a href="#" aria-role="menuitem">Link</a></li> </ul> </div> <div class="mega-menu_column"> <p id="mega-menu-1_h3">Wedges</p> <ul role="menu" aria-labelledby="mega-menu-1_h3"> <li><a href="#" aria-role="menuitem">Link</a></li> </ul> </div> <div class="mega-menu_column"> <p id="mega-menu-1_h4">Hybrids</p> <ul role="menu" aria-labelledby="mega-menu-1_h4"> <li><a href="#" aria-role="menuitem">Link</a></li> </ul> </div> </div>
Can any offer up some advice?