Repository navigation
web: keyboard / a11y (chrome polish) - #109
Merged
Merged
Conversation
Tree owns a focus-holder so unselected rail sections are tabbable. Parts and the five sections are one tree; part expansion is no longer selection, so ArrowRight/Left do not navigate. Canvas is in the tab order with skip links to stage and composer. Tablists wire aria-controls; the popover trap holds when the panel itself is focused. Fit/Cancel/disclose keep resting chrome; Button enforces a 24px min-width. Co-authored-by: Vel <Code4me2@users.noreply.github.com>
Reset part expansion during render when selection changes, instead of setState in an effect. Spell issue numbers in tests so no-palette-token does not treat them as hex. Co-authored-by: Vel <Code4me2@users.noreply.github.com>
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.
Keyboard / a11y leftovers on the operator chrome, verified against
e84dc7band INTERFACE.md §3.13 / §4.7. Web-only. Does not restack #107 quiet rail or #108 well leftovers. Leaves token persistence,dropToken, NoToken, App's token gate, and SignInDialog device-code polling to the sibling PR.Closes
TreeRowderives the roving tabindex fromaria-selected, so a tree with nothing selected cannot be entered from the keyboard #102 —Treeowns a focus-holder. A tree with no selected row still has exactly onetabIndex={0}row (default first).aria-selectedstays selection; Analyses is not faked as selected.role="tree". ArrowDown from the last part reaches Analyses. Empty sections stay collapsed (web: quiet the operator chrome — header, rail, viewport furniture, Results copy #41).aria-expanded: the chevron cannot collapse a part, and ArrowRight is a navigation #91 — Part expansion is its own set.expandedis passed only when a part has children. ArrowRight expands, ArrowLeft collapses, neither writes the workspace.tabIndex={0},id="stage"). Skip links past the rail / overlay chrome to stage and composer. No CAM.aria-labelfromcopy.ts. Session tabs wirearia-controlsto a transcripttabpanel.aria-controls; the panel hasaria-labelledby.activeElementis the panel (tabIndex={-1}) or outside the focusable list. SignInDialog login flow is untouched.Buttonsetsmin-width: var(--target-min)next tomin-height.Locked (unchanged)
data-chrome-export/data-chrome-bom/[data-testid="artifact-pin"]stay.data-glb-state=ready/stale.Tests
web/:pnpm typecheck,pnpm lint,pnpm test— 661 passed. New coverage inweb/test/keyboard-a11y.test.tsxfor the focus-holder, one-tree arrow, ArrowRight-does-not-select, canvas/skip-link targets, composer name, inspectoraria-controls, popover trap after panel click, Fit/Cancel resting chrome, and Button min-width.