Last active
March 21, 2017 17:22
-
-
Save stevebosworth/61aafef86a5b34ccb653b4c20fdf5abb to your computer and use it in GitHub Desktop.
icon-fallback-text
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
<button type=”button”> | |
<span class=”icon icon--cart” aria-hidden=”true”></span> | |
<span class=”fallback-text”>cart</span> | |
</button> | |
<style> | |
.fallback-text { | |
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