Skip to content

v6: Unify list-row hover across the Doc Explorer and History panels#4424

Merged
trevor-scheer merged 2 commits into
graphiql-6from
trevor/unify-list-row-hover
Jul 13, 2026
Merged

v6: Unify list-row hover across the Doc Explorer and History panels#4424
trevor-scheer merged 2 commits into
graphiql-6from
trevor/unify-list-row-hover

Conversation

@trevor-scheer

@trevor-scheer trevor-scheer commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

List rows across the side panels had four different "this row is highlighted" recipes doing the same job. Activity rail, dropdown menu items, and Collections rows all used a flat oklch(var(--bg-subtle)) background on hover, which is the pattern the rest of the app's interactive chrome had already settled on. Doc explorer rows instead tinted with --fg-default at a few different alpha values, History rows tinted with --accent-blue, and History's own action icons (rename/favorite/delete) used yet a fourth recipe (--fg-default at a different alpha again), all in the same file as the third.

Doc explorer (fields list, schema overview, and both search listboxes) and History now hover with the same flat --bg-subtle background as Collections, and History's action icons match too. --accent-blue is reserved for genuine active/selected state: the active field row in doc explorer, and the editable/rename row in History, both of which are untouched.

Separately, only three files in the whole app had a hover transition, each with its own duration (120ms, 100ms, 120ms/150ms), while nearly everything else snapped instantly. Rather than pick a side, this PR adds a single --transition-fast: 120ms ease token to tokens.css and applies it to every row hover touched here, so the newly-unified hover reads as one consistent, intentional motion instead of an arbitrary mix. The three pre-existing transition durations elsewhere are unchanged for now, out of scope for this pass.

Test plan

  • Hover rows in the Doc Explorer (schema types, fields, search results), History, and Collections panels; confirm all three show the same subtle flat highlight, no blue or gray tint.
  • Select/activate a row (e.g. the currently-viewed field in the Doc Explorer, or a row being renamed in History) and confirm it uses the accent-blue treatment, clearly distinct from plain hover.
  • Confirm hover feels consistent across panels, including the small action icons (rename/favorite/delete) on History rows.
  • Check both Dark and Light themes.

Refs: #4228

A single 120ms ease transition token, so hover transitions across
the app can converge on one duration instead of three different ones.
Doc explorer rows hovered with an `--fg-default` alpha tint and history
rows hovered with an `--accent-blue` alpha tint, while activity-rail,
dropdown-menu, and collections all use a flat `oklch(var(--bg-subtle))`
hover. Converge doc explorer (`fields-list`, `schema-documentation`,
`search`, `search-row`) and history rows onto that same standard, and
bring history's action-icon hover (previously its own fourth recipe,
`--fg-default` at a different alpha) in line too.

`--accent-blue` stays reserved for genuine active/selected state: the
active field row in the doc explorer, and the editable/rename state in
history. Neither of those is a hover, so they're untouched.

Also apply `--transition-fast` to all of the above row hovers, since
none of them transitioned before and this PR is already touching every
one of them.
@changeset-bot

changeset-bot Bot commented Jul 13, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8056dbc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@trevor-scheer
trevor-scheer marked this pull request as ready for review July 13, 2026 02:53
@trevor-scheer
trevor-scheer merged commit c870ea3 into graphiql-6 Jul 13, 2026
13 checks passed
@trevor-scheer
trevor-scheer deleted the trevor/unify-list-row-hover branch July 13, 2026 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant