Focus reader scroll region on open so keys scroll the story

The reader overlay opened without moving focus, so Arrow-Up/Down and
PageUp/Down scrolled the page behind it until the user clicked into the
text. Make the scroll container focusable (tabindex=-1) and focus it on
open, and drop its focus outline.
This commit is contained in:
prosolis
2026-07-07 23:14:05 -07:00
parent dbcb459908
commit e91b423b1a
4 changed files with 6 additions and 2 deletions

View File

@@ -307,6 +307,7 @@ html[data-phase="night"] {
-webkit-overflow-scrolling: touch;
border-radius: 1.75rem;
}
.pete-reader-scroll:focus { outline: none; }
.pete-reader-article {
background: var(--card);