Repository navigation
fix: show hover-only controls on keyboard focus - #896
Merged
Merged
Conversation
The server variables edit pencil and copy icons stayed at opacity 0 when tabbed onto. The schema tree's View Structure button was a stray Tab stop after every table; it now leaves the tab order (the row's context menu has the same action) and shows while its row has keyboard focus. A unit test fails on any group-hover reveal in src/components without a focus counterpart on the same line. Closes #784. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
71 tasks
Merged
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.
Fixes #784, a cross-cutting item from the October UX review: some row actions were drawn as
opacity-0 group-hover:opacity-100with nothing for keyboard focus, so keyboard users tabbed onto buttons they couldn't see. Animplementer-frontendsubagent made the change.Changes
#886, #888 and #891 had already fixed the connection tabs, the Connect popover, the history rows and the status bar. A re-audit against current
mainfound the remaining cases:ServerVariablesTabgroup-focus-visible.focus-visible.group-hover:opacity-100is removed. It never worked, because no ancestor hasgroup; the existing[tr:hover_&]still reveals it on hover.tabIndex={-1}, so it's no longer an extra Tab stop after every table. The row's menu already offers View Structure, and the tree's own keyboard handling (Make the tree and its context menus keyboard-navigable #823) reaches it.group-has-[:focus-visible]/table).aria-labelnaming its table.src/__tests__/hover-only-controls.test.ts)group-hover:opacity-Norgroup-hover:visibleinsrc/componentsthat has no focus counterpart on the same line, and lists offenders as file:line.mainwithout this fix, it lists exactly the four lines fixed here.One entry stays allowlisted for now: the grid's NULL toggle in
EditableCell.tsx:166. It's being fixed in the editor/grid batch that is in flight, and that change will drop the allowlist entry.Closes #784.
Test plan
npm run test:unit: 3,441 tests passed.npm run type-check, dprint and lint are clean (no new warnings).ServerVariablesTab.browser.test.tsxchecks computed opacity goes from 0 to 1 on keyboard focus. It failed withexpected '0' to be '1'before the fix.Sidebar.browser.test.tsxpasses 55/55.Generated by Claude Code