Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add "visually hidden" mixin/helper #23

Open
callmecavs opened this issue Feb 6, 2020 · 0 comments
Open

add "visually hidden" mixin/helper #23

callmecavs opened this issue Feb 6, 2020 · 0 comments

Comments

@callmecavs
Copy link
Owner

callmecavs commented Feb 6, 2020

add a class or Sass mixin to hide something in a manner that is still accessible to screen readers

html5bp uses:

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
@callmecavs callmecavs changed the title add "visually hidden" add "visually hidden" mixin/helper Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant