mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2546] [CLOSED] web: the closed Sampling drawer leaves the keyboard's Tab order; opening it focuses it, closing returns focus #4110
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4110
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2546
Author: @qiuzan2001
Created: 10/15/2026
Status: ❌ Closed
Base:
main← Head:chief-docs/drawer-focus📝 Commits (1)
b333897web: the closed Sampling drawer leaves the keyboard's Tab order; opening it focuses it, closing returns focus📊 Changes
3 files changed (+16 additions, -2 deletions)
View changed files
📝
serve/test_server.py(+11 -0)📝
serve/web/app.js(+4 -1)📝
serve/web/index.html(+1 -1)📄 Description
What it changes. Closed, the Chat page's Sampling drawer is only moved off-screen (
transform: translateX(100%)), so its 14 controls (Close, the four Thinking buttons, temperature, top-p, top-k, max tokens, seed, the switches, Reset, Apply) stayed in the keyboard's Tab order right after Send, insidearia-hidden="true". A keyboard user tabbed through invisible buttons, and a screen reader landed on controls it was told were hidden. Now:inertwhile closed (inindex.htmlat load, and set inopenDrawer);What it leaves alone. The drawer's look, its settings and what they send, and every other part of the page. A browser without
inert(Chrome < 102, Firefox < 112, Safari < 15.5) behaves as before, plus the focus moves.How it was checked.
index.htmlandapp.jsserved in place of the release's, Tab pressed 30 times from the message box:sampling-btn; after Escape, focus on a button inside the closed drawer;drawer-closeand Tab moves through the drawer; after Escape, focus onsampling-btn.WebApp.test_the_closed_drawer_is_out_of_the_tab_order(fails without the change).python -m unittest serve.test_server serve.test_security serve.test_frontend serve.test_request_hardening serve.test_monitor serve.test_runconfig: all pass (392 tests).🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.