Repository navigation
Conversation
cixzhang
added a commit
that referenced
this pull request
Apr 26, 2026
* add claude md * Adding layer system, hovercards, tooltips * stop propagation for the hovercard escape
kentonquatman
added a commit
that referenced
this pull request
Jul 26, 2026
- showRemoveOn="hover": reveal the remove button on any touch-capable device via @media (any-pointer: coarse) so hybrid touchscreen laptops (hover: hover + a touchscreen) are no longer left without a remove path. - Remove button backing now uses the semantic --color-overlay token instead of a hardcoded scrim, dropping the no-hardcoded-styles bypass. - Revert the image hairline to --color-border and instead make the neutral theme's light-mode --color-border a translucent black (#14) so the edge reads over tinted surfaces and images.
kentonquatman
added a commit
that referenced
this pull request
Jul 27, 2026
This was referenced Nov 11, 2026
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.
Adding the layer system build on the new CSS Anchor Positioning API.
useXDSLayer-- This is the base layer utility using CSS anchor positioning. It sets up refs, anchor CSS, and enables opening and closing the layer. It does not handle accessibility -- this would need to be handled by the callers because the way layers can be applied and their purpose can be different. It has 2 positioning modes: context-based using anchor positioning or fixed positioning using x/y relative to the viewport.useXDSTooltip,XDSTooltip-- A rebuild of our current versions. The hook is more or less what we had using the new layer primitive. Unfortunately, I couldn't get the new React FragmentRefs working due to anchor positioning requiring CSS styling. However, I wanted to avoid needing styling on these wrapper components so they aredisplay: contents. As a result, the anchor CSS needs to be applied on the child of the wrapper, so there's quite a bit of logic to try to do this in a robust way. For example, we can also wrap text nodes rather than elements and those need to be handled differently.useXDSHoverCard,XDSHoverCard-- This is similar to the tooltip but has additional accessibility requirements since it can contain interactive elements and would require keyboard users to be able to traverse into the hovercard. The way this works is by allowing the contents of the hovercard to be in tab order while the hovercard is visible. Escape while the hovercard is visible will still close the hovercard and restore focus on the trigger. Finally we have some focus trigger options that depend on the trigger itself. Some triggers are already interactive so there's no need to add another tab stop. Others might not be. In the case of text nodes, we will always inject tabIndex="0" to create a tab stop for text with hovercards.As another accessibility update, both tooltip and hovercard, if it wraps text nodes, will by default include hover indicators. We preserve the
hasHoverIndicationoption to either disable or enable this in other situations.Video for keyboard + VO behavior: [internal video removed]