Skip to content

Commit

Permalink
added back in importants
Browse files Browse the repository at this point in the history
  • Loading branch information
sophschneider committed Nov 15, 2021
1 parent 35ff532 commit cd09532
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/styles/shared/_accessibility.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
/// styles referenced from GOV.UK design system
/// https://github.com/h5bp/main.css/issues/12#issuecomment-451965809
@mixin visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin: 0;
padding: 0;
overflow: hidden;
clip-path: inset(50%);
border: 0;
white-space: nowrap;
// Need to make sure we override any existing styles.
// stylelint-disable declaration-no-important
position: absolute !important;
width: 1px !important;
height: 1px !important;
margin: 0 !important;
padding: 0 !important;
overflow: hidden !important;
clip-path: inset(50%) !important;
border: 0 !important;
white-space: nowrap !important;
}

0 comments on commit cd09532

Please sign in to comment.