Skip to content

Instantly share code, notes, and snippets.

@hiwelo
Created October 22, 2015 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hiwelo/fdb47530c0d1adbb62aa to your computer and use it in GitHub Desktop.
Save hiwelo/fdb47530c0d1adbb62aa to your computer and use it in GitHub Desktop.
Quelques petites ressources webtypographiques pour accompagner l'article Icon fonts vs. SVG : la police gagne toujours
/**
* .visually-hidden made a text still visible for a screen reader
*
* @source https://html5boilerplate.com/
**/
.visually-hidden {
position: absolute;
height: 1px;
overflow: hidden;
margin: -1px;
padding: 0;
width: 1px;
border: 0;
clip: rect(0 0 0 0);
}
.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
position: static;
height: auto;
margin: 0;
overflow: visible;
width: auto;
clip: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment