Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sparkle] - fix(Citation): tooltip #10108

Merged
merged 3 commits into from
Jan 21, 2025
Merged

[sparkle] - fix(Citation): tooltip #10108

merged 3 commits into from
Jan 21, 2025

Conversation

JulesBelveze
Copy link
Contributor

Description

This PR aims at fixing the use of the tooltip props in Citation, which was incorrectly rendered because of a radix stacking context.

Explanation: the CitationGrid component uses a @container , which creates a new stacking context which confines the tooltip’s positioning. To free the tooltip from that confined stacking context, we need to render the tooltip content via a portal` so that it’s appended to the (or another top-level container), rather than living inside the CitationGrid.

Risk

Low

Deploy Plan

  • Publish sparkle
  • Bump sparkle version in front

 - TooltipContent is now wrapped in a TooltipPortal for better positioning and rendering in the DOM

[sparkle] - feature: add tooltip to Citation component in stories

 - Implemented tooltip display for Citation component to show additional information on interaction
 - Update package version in package-lock.json and package.json files
 - Ensure consistency across the package metadata for new release
 - Change the title of the Citation component in stories to "Citation w/ tooltip" for better context in examples
Copy link
Contributor

@aubin-tchoi aubin-tchoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JulesBelveze JulesBelveze merged commit 1053328 into main Jan 21, 2025
3 checks passed
@JulesBelveze JulesBelveze deleted the fix/citation-tooltip branch January 21, 2025 08:51
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.

2 participants