Skip to content

Commit

Permalink
Fix .sr-only not working properly on elements with padding or border
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaszGasior committed Jun 5, 2022
1 parent 03f1073 commit 8479101
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions assets/css/_layout/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,12 @@ a:active {

.sr-only {
position: absolute !important;
height: 1px; width: 1px;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
height: 1px !important;
width: 1px !important;
overflow: hidden !important;
clip: rect(1px, 1px, 1px, 1px) !important;
padding: 0 !important;
border: 0 !important;
}

.skip-link {
Expand Down

0 comments on commit 8479101

Please sign in to comment.