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

fix(TextTooltip/Popper): Hide Popper when reference element dissapears #5690

Merged

Conversation

mendrew
Copy link
Contributor

@mendrew mendrew commented Aug 24, 2023

fixes: #5675

Описание

Используем hide middleware. Позволяет определить что стоит спрятать Popper если элемент относительно которого позиционирован Popper пропал.
Popper прячем c помощью visually: hidden.

Специально, чтобы тултип не прыгал, если элемент, относительно которого спозиционирован тултип, внезапно исчез.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 24, 2023

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:

Sandbox Source
VKUI TypeScript Configuration
competent-clarke-hzwmyw Issue #5675

@github-actions
Copy link
Contributor

👀 Docs deployed

Commit c44c899

@github-actions
Copy link
Contributor

github-actions bot commented Aug 24, 2023

size-limit report 📦

Path Size
JS 316.84 KB (+0.24% 🔺)
JS (gzip) 93.39 KB (+0.29% 🔺)
JS (brotli) 77.28 KB (+0.4% 🔺)
JS import Div (tree shaking) 3.04 KB (0%)
CSS 275.8 KB (0%)
CSS (gzip) 36.01 KB (0%)
CSS (brotli) 28.56 KB (0%)

@github-actions
Copy link
Contributor

github-actions bot commented Aug 24, 2023

e2e tests

Playwright Report

@mendrew mendrew force-pushed the mendrew/fix/5675/TextTooltip/dissapear-when-anchor-dissapear branch from c44c899 to 3de000b Compare August 25, 2023 15:35
@github-actions
Copy link
Contributor

github-actions bot commented Aug 25, 2023

👀 Docs deployed

Commit 4d08d90

@mendrew mendrew marked this pull request as ready for review August 25, 2023 15:59
@mendrew mendrew requested a review from a team as a code owner August 25, 2023 15:59
@mendrew mendrew marked this pull request as draft August 28, 2023 09:36
@mendrew mendrew force-pushed the mendrew/fix/5675/TextTooltip/dissapear-when-anchor-dissapear branch from 3de000b to 5a040fb Compare August 28, 2023 11:04
@codecov
Copy link

codecov bot commented Aug 28, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.03% 🎉

Comparison is base (15b09fd) 81.92% compared to head (4d08d90) 81.96%.
Report is 2 commits behind head on master.

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     
Flag Coverage Δ
unittests 81.96% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
packages/vkui/src/components/Popper/Popper.tsx 92.64% <100.00%> (+0.45%) ⬆️
packages/vkui/src/lib/floating/index.ts 100.00% <100.00%> (+15.38%) ⬆️

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

As this middleware is no longer used by default
@mendrew mendrew requested a review from inomdzhon August 28, 2023 12:02
@mendrew mendrew marked this pull request as ready for review August 28, 2023 12:02
@mendrew mendrew requested a review from inomdzhon August 30, 2023 08:38
Copy link
Contributor

@inomdzhon inomdzhon left a comment

Choose a reason for hiding this comment

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

🔥

@mendrew mendrew merged commit ab6625b into master Aug 31, 2023
@mendrew mendrew deleted the mendrew/fix/5675/TextTooltip/dissapear-when-anchor-dissapear branch August 31, 2023 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants