-
Notifications
You must be signed in to change notification settings - Fork 185
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
fix(TextTooltip/Popper): Hide Popper when reference element dissapears #5690
fix(TextTooltip/Popper): Hide Popper when reference element dissapears #5690
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 4d08d90:
|
👀 Docs deployedCommit c44c899 |
size-limit report 📦
|
e2e tests |
c44c899
to
3de000b
Compare
👀 Docs deployed
Commit 4d08d90 |
Use hide middleware and apply visually: "hidden" when reference element hides from the dom or has no size
3de000b
to
5a040fb
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #5690 +/- ##
==========================================
+ Coverage 81.92% 81.96% +0.03%
==========================================
Files 296 296
Lines 9776 9785 +9
Branches 3099 3104 +5
==========================================
+ Hits 8009 8020 +11
+ Misses 1767 1765 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
As this middleware is no longer used by default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
fixes: #5675
Описание
Используем hide middleware. Позволяет определить что стоит спрятать
Popper
если элемент относительно которого позиционирован Popper пропал.Popper прячем c помощью
visually: hidden
.Специально, чтобы тултип не прыгал, если элемент, относительно которого спозиционирован тултип, внезапно исчез.