Skip to content

Commit

Permalink
Visible skip to settings button on focus
Browse files Browse the repository at this point in the history
  • Loading branch information
victrme committed Sep 23, 2022
1 parent 3bbe137 commit d5f069b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</head>

<body class="autodark">
<button id="skiptosettings">Skip to Settings</button>
<button id="skiptosettings" type="button">Skip to Settings</button>

<div id="editlink">
<div>
Expand Down Expand Up @@ -156,7 +156,7 @@ <h2 id="greetings"></h2>
<div id="creditContainer">
<div id="credit"></div>
</div>

<div id="showSettings" class="init">
<button aria-label="Toggle settings menu">
<img src="src/assets/interface/gear.svg" alt="" draggable="false" />
Expand Down
13 changes: 13 additions & 0 deletions src/styles/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,22 @@

#skiptosettings {
position: absolute;
top: 1em;
left: 1em;
opacity: 0;
user-select: none;
touch-action: none;
color: white;
border: none;
border-radius: 4px;
padding: 0.5em 1em;
transition: opacity 0.15s $easeOutThree;

@include frostedGlass($alpha: 0.2, $fbAlpha: 0.2, $fbColor: #fff);

&:focus-visible {
opacity: 1;
}
}

#background_overlay {
Expand Down

0 comments on commit d5f069b

Please sign in to comment.