Skip to content

Instantly share code, notes, and snippets.

@jonlow
Last active August 29, 2015 14:06
Show Gist options
  • Save jonlow/02add750771b237ca757 to your computer and use it in GitHub Desktop.
Save jonlow/02add750771b237ca757 to your computer and use it in GitHub Desktop.
Accessible Dialog Markup
<!-- Dialog popups should be directly after the button that activates them
in the HTML source order, so that they can be read by screen readers
as soon as they are opened -->
<ul>
<li class="button1">
<a href="#">The button that activates the popup</a>
<div class="popup1">My popup content</div>
</li>
<li class="button2">
<a href="#">My second button</a>
<div class="popup2">
<h3>My 2nd title</h3>
<p>MyThe second popup dialog,/p>
</div>
</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment