-
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(ModalPage): expect number for height #8209
Conversation
Раньше `height` вставлялся в `style`, что позволяло передать без `px`. С переходом на CSS переменную эта возможность пропала, поэтому проверяем, что `height` это число и добавляем `px`.
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. |
size-limit report 📦
|
e2e tests |
👀 Docs deployed
Commit 344bcc6 |
Codecov ReportAttention: Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
h2. Описание Раньше `height` вставлялся в `style`, что позволяло передать без `px`. С переходом на CSS переменную эта возможность пропала, поэтому проверяем, что `height` это число и добавляем `px`. - related to #6759 h2. Изменения Применил `megeStyle` в `style`, чтобы не применять object-spread когда не надо. h2. Release notes h2. Исправления - ModalPage: числовые значения в `height` не приводились к `${height}px`
✅ v7.1.2 🎉 |
[ ] Unit-тесты[ ] e2e-тесты[ ] Дизайн-ревью[ ] Документация фичиОписание
Раньше
height
вставлялся вstyle
, что позволяло передать безpx
. С переходом на CSS переменную эта возможность пропала, поэтому проверяем, чтоheight
это число и добавляемpx
.Изменения
Применил
megeStyle
вstyle
, чтобы не применять object-spread когда не надо.Release notes
Исправления
height
не приводились к${height}px