fix: keep the hidden back-to-top button out of the tab order

The hidden back-to-top button was only transparent, so Tab still stopped on it and its focus outline was invisible.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen
2026-10-25 21:55:24 +08:00
co-authored by Claude
parent 8c385dcab9
commit ba0d4c397e
+4
View File
@@ -1269,14 +1269,18 @@ th[data-sort].sort-asc::after {
letter-spacing: 0.03em;
cursor: pointer;
opacity: 0;
/* Keeps the hidden button out of the tab order; stays visible for the whole fade */
visibility: hidden;
pointer-events: none;
transition:
opacity 180ms ease,
visibility 180ms ease,
color 180ms ease;
}
.back-to-top.visible {
opacity: 1;
visibility: visible;
pointer-events: auto;
}