Skip to content

Commit

Permalink
feat(mixins): add a11y-only and un-a11y-only
Browse files Browse the repository at this point in the history
  • Loading branch information
jefflembeck committed Apr 5, 2016
1 parent bcaac7f commit 1755ea5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/pivotal-ui/components/mixins.scss
Expand Up @@ -157,4 +157,21 @@
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

@mixin a11y-only() {
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
}

@mixin un-a11y-only() {
position: static !important;
height: auto;
width: auto;
overflow: visible;
clip: auto;
}

0 comments on commit 1755ea5

Please sign in to comment.