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(ModalPage): expect number for height #8209

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

inomdzhon
Copy link
Contributor

  • [ ] Unit-тесты
  • [ ] e2e-тесты
  • [ ] Дизайн-ревью
  • [ ] Документация фичи
  • Release notes

Описание

Раньше height вставлялся в style, что позволяло передать без px. С переходом на CSS переменную эта возможность пропала, поэтому проверяем, что height это число и добавляем px.

Изменения

Применил megeStyle в style, чтобы не применять object-spread когда не надо.

Release notes

Исправления

  • ModalPage: числовые значения в height не приводились к ${height}px

Раньше `height` вставлялся в `style`, что позволяло передать без `px`.  С переходом на CSS переменную эта возможность пропала, поэтому проверяем, что `height` это число и добавляем `px`.
@inomdzhon inomdzhon added this to the v7.1.2 milestone Jan 28, 2025
@inomdzhon inomdzhon self-assigned this Jan 28, 2025
@inomdzhon inomdzhon requested a review from a team as a code owner January 28, 2025 14:58
@github-actions github-actions bot added the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Jan 28, 2025
Copy link

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.

Copy link
Contributor

size-limit report 📦

Path Size
JS 394.16 KB (+0.01% 🔺)
JS (gzip) 119.49 KB (+0.01% 🔺)
JS (brotli) 98.38 KB (-0.03% 🔽)
JS import Div (tree shaking) 1.56 KB (0%)
CSS 346.91 KB (0%)
CSS (gzip) 42.96 KB (0%)
CSS (brotli) 34.3 KB (0%)

Copy link
Contributor

e2e tests

Playwright Report

Copy link
Contributor

👀 Docs deployed

Commit 344bcc6

Copy link

codecov bot commented Jan 28, 2025

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 95.50%. Comparing base (b65eef2) to head (344bcc6).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...kui/src/components/ModalPage/ModalPageInternal.tsx 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8209      +/-   ##
==========================================
- Coverage   95.51%   95.50%   -0.01%     
==========================================
  Files         403      403              
  Lines       11523    11525       +2     
  Branches     3827     3828       +1     
==========================================
+ Hits        11006    11007       +1     
- Misses        517      518       +1     
Flag Coverage Δ
unittests 95.50% <33.33%> (-0.01%) ⬇️

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

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

@inomdzhon inomdzhon merged commit 7909633 into master Jan 29, 2025
27 of 29 checks passed
@inomdzhon inomdzhon deleted the imirdzhamolov/fix/ModalPage-height-to-px branch January 29, 2025 08:27
vkcom-publisher pushed a commit that referenced this pull request Jan 29, 2025
h2. Описание

Раньше `height` вставлялся в `style`, что позволяло передать без `px`.  С переходом на CSS переменную эта возможность пропала, поэтому проверяем, что `height` это число и добавляем `px`.

- related to #6759

h2. Изменения

Применил `megeStyle` в `style`, чтобы не применять object-spread когда не надо.

h2. Release notes
h2. Исправления
- ModalPage: числовые значения в `height` не приводились к `${height}px`
@vkcom-publisher
Copy link
Contributor

v7.1.2 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmp:modal-page patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча type:bug
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

4 participants