Skip to content

feat(tooltip): Add shift altBoundary: true to tooltip-provider.tsx https://github.com/TEDI-Design-System/react/issues/566#567

Open
rtarassov wants to merge 3 commits intoTEDI-Design-System:rcfrom
rtarassov:rc
Open

feat(tooltip): Add shift altBoundary: true to tooltip-provider.tsx https://github.com/TEDI-Design-System/react/issues/566#567
rtarassov wants to merge 3 commits intoTEDI-Design-System:rcfrom
rtarassov:rc

Conversation

@rtarassov
Copy link

@rtarassov rtarassov commented Mar 18, 2026

This solves the issue where the tooltip can open outside of the component if scrolling is possible.
Added ancestorScroll: true to TooltipProvider to close the tooltip when scrolling.

Without shift altBoundary:
image

With shift altBoundary:
image

@rtarassov rtarassov changed the title feat(tooltip): Add shift options to TooltipProviderProps and scrollable tooltip story feat(tooltip): Add shift altBoundary: true to tooltip-provider.tsx Mar 18, 2026
@codecov
Copy link

codecov bot commented Mar 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@rtarassov rtarassov changed the title feat(tooltip): Add shift altBoundary: true to tooltip-provider.tsx feat(tooltip): Add shift altBoundary: true to tooltip-provider.tsx #566 Mar 18, 2026
@rtarassov rtarassov changed the title feat(tooltip): Add shift altBoundary: true to tooltip-provider.tsx #566 feat(tooltip): Add shift altBoundary: true to tooltip-provider.tsx https://github.com/TEDI-Design-System/react/issues/566 Mar 18, 2026
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.

1 participant