Repository navigation
feat(kit): share one hover card and move it between triggers - #150
Merged
riccardoperra merged 3 commits intoNov 28, 2026
Merged
Conversation
Hover cards on a page share one surface. Moving the pointer to another
trigger while a card is open, or within 400ms of it closing, slides the
card to the new trigger and resizes it to the new content in 200ms
instead of closing one card and popping another. Keyboard moves swap in
place; reduced motion keeps only the content fade.
HoverCardGroup gives a set of triggers their own surface, and
shared={false} gives one card its own. The input tracker also records
pointerover, so an overlay opened from pointerenter sees that pointer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: a534066 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
CodeUI package previewBuilt from npm install https://pkg.pr.new/riccardoperra/codeui/@codeui/kit@a5340668cca2e644d1c2966e72f2231028026f15The kit installs matching previews of |
Contributor
|
Docs preview deployed to Cloudflare Pages.
Built from a534066. |
… beside them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A hover card inside another card's content gets a surface of its own. The outer card stays open while the pointer is on the inner card and until it closes; a press on the inner card no longer dismisses it, and Escape closes the inner card first. An `a` trigger gets a dotted underline in the hint tone that takes the text colour on hover and while open, so hover-card links read as such in running text. Button and row triggers keep their own look. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
riccardoperra
merged commit Nov 28, 2026
5bd7447
into
feat/upgrade-solid2-kobalte
5 of 6 checks passed
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.
What
Hover cards on a page now share one card. When the pointer moves to another trigger while a card is open, or within 400ms of it closing, the card moves there instead of closing and popping a second one. It slides to the new trigger, resizes to the new content, and fades the new content in.
openDelay.HoverCardGroupgives a set of triggers their own card (skipDelayDuration).shared={false}gives one card its own;forceMountimplies it. A card uses the nearest group, otherwise the page card.Motion
--cui-motion-duration-panel) with--cui-motion-ease-out.transformtransition on Kobalte's positioner. Floating UI recomputes x/y from the new anchor.height. The proposed--cui-motion-ease-in-outtoken isn't adopted here.API changes
HoverCardContentis no longer polymorphic.class,classes,style,ref,mountand the dismiss handlers go on the card.display: contentswrapper around the children, because Kobalte reads a spread only once.HoverCardPropsdrops Kobalte'sid.data-expanded/data-closed.utils/open-sourcealso recordspointerover. The browser fires it before thepointermovethat crosses into an element, so overlays opened frompointerentercount as pointer-initiated.Docs
hover-cardpage gets "Moving between cards" and "Groups" sections, theHoverCardGroupAPI, thesharedprop, keyboard, motion and SSR notes.hover-card/sharedandhover-card/group.DESIGN.md§9.5 and the design patterns page are updated.Checks
hover-card-shared.test.tsx.api:check,docs:lintanddocs:coveragepass.docs:check-llmsneeds a running docs site.🤖 Generated with Claude Code