Skip to content

Instantly share code, notes, and snippets.

@kaseybon
Last active January 16, 2019 18:20
Show Gist options
  • Save kaseybon/b43b7abd15c355ed1b123ad1ce411936 to your computer and use it in GitHub Desktop.
Save kaseybon/b43b7abd15c355ed1b123ad1ce411936 to your computer and use it in GitHub Desktop.
Example of an interactive component using ARIA attributes.
<button class="flyout-button"
id="browseTopics"
aria-expanded="false">Browse Topic</button>
<div class="flyout"
aria-labelledby="browseTopics"
aria-hidden="true" >...</div>
<button class="flyout-button"
id="browseTopics"
aria-expanded="true">Browse Topic</button>
<div class="flyout"
aria-labelledby="browseTopics"
aria-hidden="false" >...</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment