Skip to content

Commit

Permalink
modernized visually hidden styles
Browse files Browse the repository at this point in the history
  • Loading branch information
sophschneider committed Nov 12, 2021
1 parent e8e1e62 commit c9f44bf
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/styles/shared/_accessibility.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,10 @@
/// accessibility tools.

@mixin visually-hidden {
// Need to make sure we override any existing styles.
// stylelint-disable declaration-no-important
position: absolute !important;
top: 0;
left: 0;
clip: rect(1px, 1px, 1px, 1px) !important;
overflow: hidden !important;
height: 1px !important;
width: 1px !important;
padding: 0 !important;
border: 0 !important;
// stylelint-enable declaration-no-important
clip-path: inset(50%);
height: 1px;
width: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
}

0 comments on commit c9f44bf

Please sign in to comment.