Skip to content

Commit 3000e73

Browse files
aclark4lifeCopilot
andcommitted
Remove back-to-top from tab order while hidden
Add visibility:hidden alongside opacity/pointer-events so keyboard and screen-reader users can't focus the button when it's not shown. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5172ece commit 3000e73

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

assets/css/pillow.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,13 +737,15 @@ section {
737737
font-size: 1.1rem;
738738
z-index: 10;
739739
opacity: 0;
740+
visibility: hidden;
740741
transform: translateY(.5rem);
741742
pointer-events: none;
742-
transition: opacity .2s ease-in-out, transform .2s ease-in-out, background-color .15s ease-in-out;
743+
transition: opacity .2s ease-in-out, transform .2s ease-in-out, background-color .15s ease-in-out, visibility .2s;
743744
}
744745

745746
.back-to-top.is-visible {
746747
opacity: 1;
748+
visibility: visible;
747749
transform: translateY(0);
748750
pointer-events: auto;
749751
}

0 commit comments

Comments
 (0)