fix(components): hover anywhere on a gallery card activates it - #485
Merged
Merged
Conversation
Hovering or focusing the title, arrow, or thumbnail now plays the preview GIF, lifts the card, fills the arrow, and darkens the title together. Previously the GIF and shadow only reacted to the thumbnail and the arrow only to the title/arrow.
schloerke
marked this pull request as ready for review
September 25, 2026 18:27
schloerke
enabled auto-merge (squash)
September 25, 2026 18:27
This branch was successfully deployed
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.
Summary
On
/components/, hovering a thumbnail didn't fill the arrow, and hovering the title or arrow didn't play the GIF. Now the whole column (title, arrow, and thumbnail) is one hover target: the GIF plays, the card lifts, the arrow fills, and the title darkens together.components-list.css: the hover and focus styles now key off.component-list-column:is(:hover, :has(:focus-visible))instead of separate:hoverrules and the old sibling selector.components-list.js: the play/stop listeners are on the column. Keyboard focus usesfocusin/focusoutwith arelatedTargetcheck, so tabbing title → arrow → card within one column keeps the GIF playing instead of restarting it. The existing touch and reduced-motion guards are unchanged.Verification
Open
/components/on the preview deploy and hover a component's title, arrow, and thumbnail in turn. Each one plays the GIF, lifts the card, and fills the arrow. Tabbing through the links does the same.Checked locally with Playwright against a render of
components/index.qmd: