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

Tooltip Component Upgrade - Use anchor position and ref for reference #276

Open
ksolanki7 opened this issue Jan 10, 2025 · 0 comments
Open
Labels
housekeeping The issue relates to a housekeeping task or chore

Comments

@ksolanki7
Copy link
Contributor

Background context:

The Tooltip component needs to be upgraded to improve positioning and accessibility by leveraging new features available in React 19 and modern browser capabilities.

Tasks:

Anchor Positioning:
Utilize the CSS position: anchor property for tooltip placement, ensuring more accurate and flexible positioning relative to the trigger.

Reference: MDN - position: anchor.
Browser Compatibility: Confirm wide browser support before implementing this feature.

Ref Integration:
Use React's forwardRef to create tooltip components that can reference the trigger and tooltip elements directly.
Align with React 19's enhanced support for ref as a prop.
References:
React Docs - forwardRef
React 19 Blog - Ref as a Prop.

Additional Information:

Consider Web Popver Api - Popover API

@ksolanki7 ksolanki7 added the housekeeping The issue relates to a housekeeping task or chore label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping The issue relates to a housekeeping task or chore
Projects
Status: To Review
Development

No branches or pull requests

1 participant