What fresh hell is THIS now? - Patrick Lauke
[karlgroves] > A company has no inherent reason or moral obligation to consider people outside its products’ geographic or economic reach.
Read as: We’ve decided who our market is, so FU if you’re outside of that definition
[miwayha] an annoying question…
I have this markup:
<article role="article" tabindex="-1" aria-labelledby="article_1_heading"> <p aria-hidden="true">Visible Subhead</p> <h3 id="article_1_heading"><a href="">Article title</a></h3> <p class="visually_hidden">Screen Reader Subhead</p> </article>
whenever I use voiceover to interact with the group, the screen reader jumps to the Screen Reader subhead. I have to use VO + left arrow to navigate back to the Article Title. Any ideas what’s going on?
<nav>
are you referring to a widget with defined behavior?
[cordelia] In the simple case of a horizontal bar of links, it could be marked up like this without any extra keyboard behavior:
<nav> <ul> <li><a href=“…”>A</a></li> <li><a href=“…”>B</a></li> … </ul> </nav>
But I didn’t realize there was a whole mega menu under it until your last comment so I think it would need to be a little more complex. Have you seen Adobe’s open source accessible mega menu? https://adobe-accessibility.github.io/Accessible-Mega-Menu/
role=“menubar”
): http://terrillthompson.com/blog/474
[miwayha] More weirdness…
I tested this markup:
<article tabindex="-1" aria-label="article 1"> <p aria-hidden="true">Visible Subhead</p> <p id="article_1_heading"><a href="http://example.com">Article One</a></p> <p class="visually_hidden">Screen Reader Subhead</p> </article> <article tabindex="-1" aria-label="article 2"> <p aria-hidden="true">Visible Subhead</p> <h3 id="article_2_heading"><a href="http://example.com">Article Two</a></h3> <p class="visually_hidden">Screen Reader Subhead</p> </article> <article tabindex="-1" aria-label="article 3"> <p aria-hidden="true">Visible Subhead</p> <p class="visually_hidden">Screen Reader Subhead</p> <p id="article_3_heading"><a href="://example.com">Article Three</a></p> </article> <article tabindex="-1" aria-label="article 4"> <p aria-hidden="true">Visible Subhead</p> <p class="visually_hidden">Screen Reader Subhead</p> <h3 id="article_4_heading"><a href="http://example.com">Article Four</a></h3> </article>
In each time, on voiceover, “Screen Reader Subhead” was what the screen reader defaulted to after pressing Control-Option-Shift-Down to enter the group. I’m ready to give up. x@
If anyone else would test with voiceover, I’d be eternally grateful
[miwayha] A tangent about menus on mobile, we’ve found appendaround to a really handy javascript library. Basically, it allows you to reorder the DOM based on breakpoints. So on desktop, our submenu in our left sidebar is below the main content in source order, but on mobile, it’s before.