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

feature(ModalPage): Add height prop to ModalPage #5830

Merged
merged 3 commits into from
Sep 20, 2023

Conversation

mendrew
Copy link
Contributor

@mendrew mendrew commented Sep 19, 2023


  • Unit-тесты - особо пользы не принесут
  • e2e-тесты - в целом тоже
  • Дизайн-ревью - не требуется

Описание

Добавляем возможность устанавливать фиксированную высоту для ModalPage.

Изменения

  • добавлен новый проп height, который можно использовать как в мобильной версии так и в десктопной.
  • при использовании в мобильной версии settlingHeight будет высчитываться относительно заданного height.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 19, 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 7a6bca0:

Sandbox Source
VKUI TypeScript Configuration

@github-actions
Copy link
Contributor

github-actions bot commented Sep 19, 2023

size-limit report 📦

Path Size
JS 317.4 KB (+0.01% 🔺)
JS (gzip) 96.8 KB (+0.02% 🔺)
JS (brotli) 80.13 KB (+0.08% 🔺)
JS import Div (tree shaking) 2.95 KB (0%)
CSS 275.69 KB (0%)
CSS (gzip) 35.99 KB (0%)
CSS (brotli) 28.54 KB (0%)

@github-actions
Copy link
Contributor

github-actions bot commented Sep 19, 2023

e2e tests

Playwright Report

@github-actions
Copy link
Contributor

github-actions bot commented Sep 19, 2023

👀 Docs deployed

Commit 7a6bca0

@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.26% 🎉

Comparison is base (de2126d) 80.87% compared to head (7a6bca0) 81.13%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5830      +/-   ##
==========================================
+ Coverage   80.87%   81.13%   +0.26%     
==========================================
  Files         300      300              
  Lines        9166     9193      +27     
  Branches     3122     3125       +3     
==========================================
+ Hits         7413     7459      +46     
+ Misses       1753     1734      -19     
Flag Coverage Δ
unittests 81.13% <ø> (+0.26%) ⬆️

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

Files Changed Coverage Δ
...ckages/vkui/src/components/ModalPage/ModalPage.tsx 97.67% <ø> (ø)

... and 9 files with indirect coverage changes

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

@mendrew mendrew force-pushed the mendrew/5712/feat/ModalPage/add-height branch from 4dc29e0 to 47463af Compare September 19, 2023 15:51
@mendrew mendrew marked this pull request as ready for review September 19, 2023 16:02
@mendrew mendrew requested a review from a team as a code owner September 19, 2023 16:02
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 added the v5 Автоматизация: PR продублируется в ветку v5 label Sep 20, 2023
@mendrew mendrew merged commit 239d7f3 into master Sep 20, 2023
@mendrew mendrew deleted the mendrew/5712/feat/ModalPage/add-height branch September 20, 2023 08:47
vkcom-publisher pushed a commit that referenced this pull request Sep 20, 2023
* Добавляем возможность устанавливать фиксированную высоту для ModalPage.

* Изменения
- добавлен новый проп `height`, который можно использовать как в мобильной версии так и в десктопной.
- при использовании в мобильной версии `settlingHeight` будет высчитываться относительно  заданного `height`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v5 Автоматизация: PR продублируется в ветку v5
Projects
None yet
3 participants