feat(Popover): add anchorRef prop
- close #6891
- [x] Документация фичи
Описание
Нужно добавить пропс для компонента Popover с помощью которого можно указать элемент, относительно которого будет позиционироваться поповер
Изменения
Добавил пропс anchorRef в компонент Popover. При передаче его, поповер будет позиционироваться относительно указанного элемента
size-limit report 📦
| Path | Size |
|---|---|
| JS | 381.86 KB (+0.31% 🔺) |
| JS (gzip) | 115.6 KB (+0.29% 🔺) |
| JS (brotli) | 94.91 KB (+0.34% 🔺) |
| JS import Div (tree shaking) | 1.45 KB (0%) |
| CSS | 309.06 KB (0%) |
| CSS (gzip) | 39.64 KB (0%) |
| CSS (brotli) | 31.86 KB (0%) |
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.
Codecov Report
Attention: Patch coverage is 91.66667% with 5 lines in your changes missing coverage. Please review.
Project coverage is 95.15%. Comparing base (
7a9018e) to head (cfcbff4). Report is 119 commits behind head on master.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| .../vkui/src/components/Popover/PopoverWithAnchor.tsx | 90.90% | 4 Missing :warning: |
| packages/vkui/src/components/Popover/Popover.tsx | 85.71% | 1 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## master #7113 +/- ##
==========================================
- Coverage 95.17% 95.15% -0.02%
==========================================
Files 384 386 +2
Lines 11212 11269 +57
Branches 3674 3697 +23
==========================================
+ Hits 10671 10723 +52
- Misses 541 546 +5
| Flag | Coverage Δ | |
|---|---|---|
| unittests | 95.15% <91.66%> (-0.02%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
PR закрыт из-за отсутствия активности в течение последних 14 дней. Если это произошло по ошибке или изменения все ещё актуальны, откройте PR повторно.