Skip to content

Make hover-only controls visible when they have keyboard focus #784

Closed

Description

@EVWorth

What's wrong

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.

Part of the UX review tracking issue.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 24, 2026
    6e9c44e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions