-
Notifications
You must be signed in to change notification settings - Fork 189
feat(DateInput): add placeholder prop #8168
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(DateInput): add placeholder prop #8168
Conversation
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 beee192 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8168 +/- ##
==========================================
+ Coverage 95.49% 95.50% +0.01%
==========================================
Files 403 403
Lines 11503 11507 +4
Branches 3812 3815 +3
==========================================
+ Hits 10985 10990 +5
+ Misses 518 517 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
# Conflicts: # packages/vkui/src/components/DateInput/__image_snapshots__/dateinput-android-chromium-dark-1-snap.png # packages/vkui/src/components/DateInput/__image_snapshots__/dateinput-android-chromium-light-1-snap.png # packages/vkui/src/components/DateInput/__image_snapshots__/dateinput-ios-webkit-dark-1-snap.png # packages/vkui/src/components/DateInput/__image_snapshots__/dateinput-ios-webkit-light-1-snap.png # packages/vkui/src/components/DateInput/__image_snapshots__/dateinput-vkcom-chromium-dark-1-snap.png # packages/vkui/src/components/DateInput/__image_snapshots__/dateinput-vkcom-chromium-light-1-snap.png # packages/vkui/src/components/DateInput/__image_snapshots__/dateinput-vkcom-firefox-dark-1-snap.png # packages/vkui/src/components/DateInput/__image_snapshots__/dateinput-vkcom-firefox-light-1-snap.png # packages/vkui/src/components/DateInput/__image_snapshots__/dateinput-vkcom-webkit-dark-1-snap.png # packages/vkui/src/components/DateInput/__image_snapshots__/dateinput-vkcom-webkit-light-1-snap.png
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.
👏 👏 👏
# Conflicts: # packages/vkui/src/components/DateInput/__image_snapshots__/dateinput-android-chromium-dark-1-snap.png # packages/vkui/src/components/DateInput/__image_snapshots__/dateinput-android-chromium-light-1-snap.png # packages/vkui/src/components/DateInput/__image_snapshots__/dateinput-vkcom-chromium-dark-1-snap.png # packages/vkui/src/components/DateInput/__image_snapshots__/dateinput-vkcom-chromium-light-1-snap.png
4467867
…/date-input-placeholder # Conflicts: # packages/vkui/src/components/DateInput/DateInput.test.tsx
beee192
Описание
Нужно добавить отображение
placeholder
- текст, который будет отображаться при пустом значенииvalue
Изменения
renderCustomValue
, которое позволяет отрендерить кастомный текст в зависимости от значения в полеRelease notes
Улучшения
renderCustomValue
, которое позволяет отрендерить кастомный текст в зависимости от значения в поле