Skip to content

Commit

Permalink
update skip to content non focus state
Browse files Browse the repository at this point in the history
  • Loading branch information
rezrah committed Dec 18, 2023
1 parent b49f218 commit f61c5ba
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
.SkipToMainContent {
position: absolute;
top: 0;
left: 0;
z-index: 999;
padding: var(--base-size-16);
background-color: var(--base-color-scale-blue-5);
color: var(--base-color-scale-white-0);
opacity: 0;
}
.SkipToMainContent:focus {
left: 0;
opacity: 1;
opacity: 1;
.SkipToMainContent:not(:focus) {
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
width: 1px;
margin: -1px;
padding: 0px;
}

0 comments on commit f61c5ba

Please sign in to comment.