-
Notifications
You must be signed in to change notification settings - Fork 162
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: Add slot for custom controls in absolute range date picker #531
Conversation
@@ -38,10 +38,6 @@ $calendar-header-color: awsui.$color-text-body-default; | |||
} | |||
|
|||
.calendar { | |||
display: block; | |||
width: 100%; | |||
margin-bottom: awsui.$space-scaled-s; |
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.
Replaced this with SpaceBetween component. Screenshot tests shown no difference
Codecov ReportBase: 92.58% // Head: 92.58% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #531 +/- ##
=======================================
Coverage 92.58% 92.58%
=======================================
Files 569 569
Lines 16162 16174 +12
Branches 4419 4421 +2
=======================================
+ Hits 14963 14975 +12
Misses 1118 1118
Partials 81 81
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
{ | ||
value: [{ start: { date: '', time: '' }, end: { date: '', time: '' } }], | ||
setValue: [() => {}], | ||
i18nStrings: [i18nStrings], | ||
customAbsoluteRangeControl: [() => 'Custom control'], | ||
}, |
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.
This addition caused visual regression tests to fail (backstop does not automatically detect and skip added permutations, unlike our internal engine).
All other tests are good
82b86dc
to
fd1e578
Compare
fd1e578
to
4a4a29a
Compare
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.
LGTM
Description
Allow to render a custom control in absolute selection mode. Check the new
custom-control.page.tsx
demo for usage example.Related links, issue #, if available: n/a
How has this been tested?
Locally, build in my dev-pipeline (link in DM)
Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness
CONTRIBUTING.md
.CONTRIBUTING.md
.Security
checkSafeUrl
function.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.