-
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
feat(ImageBaseOverlay): remove disableInteractive prop #7628
feat(ImageBaseOverlay): remove disableInteractive prop #7628
Conversation
size-limit report 📦
|
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. |
e2e tests |
👀 Docs deployed
Commit 7d61909 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7628 +/- ##
==========================================
- Coverage 95.21% 95.14% -0.07%
==========================================
Files 384 383 -1
Lines 11360 11349 -11
Branches 3728 3729 +1
==========================================
- Hits 10816 10798 -18
- Misses 544 551 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codmods master! 💯
Единственное, на что хочу обратить внимание, это сообщение для пользователя. Хорошо бы сделать их более понятными, расписать причины.
Ясно, что можно в migration guide залезть, но проще понять что не так, когда есть контекст.
В паре мест я предложил что можно написать, но пару последних опустил, там тоже надо бы поподробнее причину описать.
packages/vkui/src/components/ImageBase/ImageBaseOverlay/types.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Andrey Medvedev <andrey.medvedev@vk.team>
…teractive' into e.muhamethanov/remove-disable-interactive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💅 🔥
✅ v7.0.0-beta.0 🎉 |
✅ v7.0.0 🎉 |
Описание
Сейчас у компонента
ImageBaseOverlay
есть пропdisableInteractive
. Он отключает интерактивность самого компонентаOverlay
. Нужно избавиться от этого пропа и вместо него использовать переданное значениеonClick
в компонент. Если передано, тоdisableInteractive=false
, если нет, тоdisableInteractive=true
.Изменения
Release notes
BREAKING CHANGE
Image.Overlay
параметрdisableInteractive
был удален, вместо него теперь можно просто не прокидывать параметрonClick