You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make hover-only controls visible when they have keyboard focus #784
Across the app, row actions are drawn with opacity-0 group-hover:opacity-100 and nothing for focus. They are in the tab order, so a keyboard user lands on a button they can't see and doesn't know what Enter will do. This goes against NFR-3.1 (keyboard operable) and WCAG 2.4.7 (focus visible).
Confirmed in the October UX review on the mock backend (?mock=connected). Tabbing onto each of these gives computed opacity: 0:
Where
Control
src/components/layout/ConnectionTabs.tsx:395
"Edit connection" pencil in the connect menu
src/components/layout/ConnectionTabs.tsx
Disconnect X on a connection tab
src/components/schema/SchemaTree.tsx:717-726
"View Structure" button on each table row (also a stray Tab stop after every table)
src/components/admin/ServerVariablesTab.tsx:242
Edit pencil on each variable
src/components/history/QueryHistory.tsx:505
Delete X on each history entry
Fix
Add focus-visible:opacity-100 (or group-focus-within:opacity-100 on the row) wherever group-hover:opacity-100 is used.
Give the schema tree's hover button tabIndex={-1}, since the row's own keyboard handling should reach it.
A lint check, or a unit test that greps for group-hover:opacity-100 without a focus counterpart, would keep new ones out.
git grep -n "group-hover:opacity-100" src lists every current use.
Activity
fix: show hover-only controls on keyboard focus
fix(grid): show the NULL toggle on keyboard focus
fix(ux): editor, grid and results review fixes (#908)