===start invisible code=== (no CSS used to render icons)
===end sample
This is a snip from a WordPress implemementation nstall of a search bar. Icon fonts are used, and we'll experiment to make them accessible.
===Start===
===finish===
<nav id="smartMenu">
<ul>
<li>
<a id="toggleAC">
</li>
<li>
<a id="toggleLocal">
<i class="icon-menu"></i>
</a>
</li>
<li>
<a id="toggleSearch" aria-label="Main menu" aria-expanded="false" role="button" tabindex="0">
<i class="icon-search"></i>
</a>
</li>
</ul>
</nav>
This will also require trapping the enter key and spacebar and firing the same code when these keys are pressed, as the mouse click fires.
JAWS | NVDA | VoiceOver | |
---|---|---|---|
FireFox34.0.5 | OK | OK | N/A |
IE11.0.9 | OK | OK | N/A |
Chrome 39.02 | OK | OK | N/A |
Safari MacOS | N/A | N/A | only reads top level heading |
xxxxxxxx