Repository navigation
fix(kit): put HoverCardContent attributes and handlers on the card - #151
Merged
riccardoperra merged 1 commit intoNov 28, 2026
Merged
Conversation
Since the shared card, HoverCardContent put attributes and event handlers on a display: contents wrapper around the children. A pointerleave handler fired as soon as the pointer moved from the content onto the card's padding, and a mousedown handler missed the padding. The active card's attributes and handlers now go on the card itself, applied when it takes the card and removed when another card does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
| Name | Type |
|---|---|
| @codeui/kit | Minor |
| @codeui/styles | Minor |
| @codeui/storybook-playground | Patch |
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
Contributor
CodeUI package previewBuilt from npm install https://pkg.pr.new/riccardoperra/codeui/@codeui/kit@ec9472f74d0c8246bf9ea7a08bc64a4943f01627The kit installs matching previews of |
Contributor
|
Docs preview deployed to Cloudflare Pages.
Built from ec9472f. |
riccardoperra
merged commit Nov 28, 2026
d5a3631
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.
Problem
After #150,
HoverCardContentput any attribute or event handler other thanclass,style,refand the dismiss handlers on adisplay: contentswrapper around the children. In CodeLoom this breaks two things:onPointerEnter={hold}andonPointerLeave={hide}. Moving from the content onto the card's padding leaves the wrapper, sohidefires and the preview closes while the pointer is still on the card.onMouseDownpreventDefault doesn't cover the padding, so a click there takes focus from the editor.Fix
addEventListenerand support Solid's[handler, data]form.Kobalte reads a JSX spread only once, so they're applied in an effect.
Checks
api:checkis updated anddocs:lintpasses.🤖 Generated with Claude Code