Skip to content

Commit

Permalink
used gov uk design system styles for visually hidden since they have …
Browse files Browse the repository at this point in the history
…already been tested
  • Loading branch information
sophschneider committed Nov 15, 2021
1 parent 2693175 commit 525dac1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/styles/shared/_accessibility.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/// Used to hide an element visually, but keeping it accessible for
/// accessibility tools.

/// styles referenced from GOV.UK design system
/// https://github.com/h5bp/main.css/issues/12#issuecomment-451965809
@mixin visually-hidden {
clip-path: inset(50%);
height: 1px;
width: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
height: 1px;
margin: 0;
padding: 0;
overflow: hidden;
clip-path: inset(50%);
border: 0;
white-space: nowrap;
}

0 comments on commit 525dac1

Please sign in to comment.