Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.18 KB

README.md

File metadata and controls

36 lines (22 loc) · 1.18 KB

A11Y

@mixin screen-reader-only

Hide an element to all devices except screen readers with .sr-only. Combine .sr-only with .is-focusable to show the element again when it’s focused (e.g. by a keyboard-only user). Useful for "Skip to main content" links

  • Group: A11y
  • Access: public

Parameters

Name Type Description Default
$className String a CSS class name that will prefix all helpers "is-sr-only"
$size Number a valid CSS number .625rem

Examples

<a class="sr-only is-focusable" href="#content">Skip to main content</a>

Links

Since

  • 0.1.0

Authors

  • HTML5 Boilerplate