Last active
March 21, 2017 17:32
-
-
Save stevebosworth/f050839b9ebe2c705aa6e5af37f947bc to your computer and use it in GitHub Desktop.
a11y-examples-price
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li> | |
<span id=”productPrice”> | |
<span aria-hidden=”true”>199<sup>99</sup></span> | |
<span class=”visually-hidden”>$199.99</span> | |
</span> | |
</li> | |
<style> | |
.visually-hidden { | |
position: absolute !important; | |
overflow: hidden; | |
clip: rect(0 0 0 0); | |
height: 1px; | |
width: 1px; | |
margin: -1px; | |
padding: 0; | |
border: 0; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment