Repository navigation
fix(a11y): name remote More projects menu, wire effort-flyout active_descendant and Left step, expose model budget - #260
Merged
Merged
Conversation
…descendant and Left step, expose model budget Address all three #160 accessibility findings: - **Remote folder picker "More projects" trigger & overflow menu (`features/projects/src/remote_picker/`):** Give `"…"` accessible name `"More projects"` (`.label_static(t!("dialog.directory.moreProjects"))`) and `.expanded(...)`; change overflow menu rows from `role="button"` to focusable `role="menuitem"` rows; add keyboard navigation (`Down` from trigger, `ArrowUp`/`ArrowDown`/`Home`/`End`/`Enter`/`Space`/`Tab`) and layered `Escape` dismissal returning focus to `"More projects"`. - **Model picker `#effort-flyout` screen-reader navigation & `Left` step (`crates/session-view/src/pickers/{flyout.rs,dialog.rs,host.rs}`):** Wire `#picker-search` `.active_descendant(...)` to the active flyout option (`effort-default`, `effort-<variant>`, `effort-favorite`) while keyboard navigation is inside `#effort-flyout` (falling back to `option-<model>` otherwise), set `.checked(...)` on `menuitemradio` rows, label `#picker-search`, and restore `Left` arrow (`step < 0`) on a model row to step effort backward (`step_effort`). - **Model row budget accessible description (`crates/session-view/src/pickers/dialog.rs`):** Because `Role::ListBoxOption` is a leaf in Rune's accessibility tree, include budget status (`"$72.00 left"` / `"Budget reached"`), provider note, Free/Latest tags, and current effort in each option's `.description(...)` and set `.checked(selected)`.
|
PR test build retired — merged into |
Hona
added a commit
that referenced
this pull request
Nov 20, 2026
…ing (#266) - Fold verified fleet PRs #247, #251, #252, #253, #254, #255, #256, #257, #258, #260, #261, #262, #263, #264, and #265 (Rune #1290 PRE-11 / #1296) into docs/upstream-sync/ledger.{json,md} - Audit upstream anomalyco/opencode through 92d35f8e18 (+9 commits past bf683129fa), adding UP-107..UP-113 and assigning UP-106/UP-108/UP-111 to BROWSER-UI - Update scripts/upstream-sync-check.ts to skip pure *.fixture.* test files and route browser UI/history vs extensions commits to BROWSER-UI and WS-9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses all three
#160accessibility findings:features/projects/src/remote_picker/):"…"trigger accessible name"More projects"(.label_static(t!("dialog.directory.moreProjects"))) and.expanded(...)state instead of exposing"…".role="menuitem"rows inside a labeledrole="menu"instead ofrole="button"children.Downfrom trigger,ArrowUp/ArrowDown/Home/End/Enter/Space/Tab) and layeredEscapedismissal that closes the overflow menu and returns focus to"More projects"before closing the dialog.#effort-flyoutscreen-reader announcements &Leftstep (crates/session-view/src/pickers/{flyout.rs,dialog.rs,host.rs}):#picker-search.active_descendant(...)to the active flyout option (effort-default,effort-<variant>, oreffort-favorite) while keyboard navigation is inside#effort-flyout, falling back tooption-<model>otherwise, and adds.checked(...)tomenuitemradiorows and an accessible label to#picker-search.Leftarrow (step < 0, orRightin RTL) on a model row to step effort backward viastep_effort.crates/session-view/src/pickers/dialog.rs):"$72.00 left"/"Budget reached"), provider note, Free/Latest tags, and current effort in eachRole::ListBoxOptionrow's.description(...)and sets.checked(selected), sinceListBoxOptionis a leaf node in Rune's accessibility tree.Verification
pwsh scripts/guardrails.ps1(5/5),pwsh scripts/web.ps1 -Check(wasm32+web-clock),cargo check --workspace --all-targets, andcargo check -p session-view --examplesgreen.a11y-probe.exe):More projects, button, collapsed->Enter->More projects, menu | tools, menu item->Down->website, menu item->Up->tools, menu item->Escape-> focus returns toMore projects, button, collapsed.Choose model variant, menu | Default, menu item radio button, not checked->Down->Low->Down->Medium->Left->Claude Opus 5.5, option, checked, Xhigh, $72.00 left->Left->Claude Opus 5.5, option, checked, High, $72.00 left.Claude Sonnet 5.5exposesdesc="$72.00 left"in UIAFullDescription.