-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(react-calendar-compat): added reverse Date selection #34468
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(react-calendar-compat): added reverse Date selection #34468
Conversation
📊 Bundle size report🤖 This report was generated against 2ae40918b8d18d85c19fd1414154283d1e9e9b82 |
Pull request demo site: URL |
c7fc86b
to
f3b3278
Compare
@@ -0,0 +1,7 @@ | |||
{ |
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.
🕵🏾♀️ visual changes to review in the Visual Change Report
vr-tests-react-components/Avatar Converged 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
vr-tests-react-components/Avatar Converged.badgeMask.normal.chromium.png | 4 | Changed |
vr-tests-react-components/Positioning 2 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
vr-tests-react-components/Positioning.Positioning end.updated 2 times.chromium.png | 611 | Changed |
vr-tests-react-components/Positioning.Positioning end.chromium.png | 749 | Changed |
vr-tests-react-components/Skeleton converged 3 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
vr-tests-react-components/Skeleton converged.Opaque Skeleton with circle - High Contrast.default.chromium.png | 1 | Changed |
vr-tests-react-components/Skeleton converged.Opaque Skeleton with rectangle - Dark Mode.default.chromium.png | 29 | Changed |
vr-tests-react-components/Skeleton converged.Opaque Skeleton with rectangle.default.chromium.png | 15 | Changed |
vr-tests-react-components/TagPicker 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
vr-tests-react-components/TagPicker.disabled - High Contrast.chromium.png | 1321 | Changed |
There were 1 duplicate changes discarded. Check the build logs for more information.
f3b3278
to
9fa5e02
Compare
9fa5e02
to
b5750a9
Compare
@@ -165,6 +165,7 @@ export function getDateRangeArray( | |||
firstDayOfWeek: DayOfWeek, | |||
workWeekDays?: DayOfWeek[], | |||
daysToSelectInDayView: number = 1, | |||
reverse?: boolean, |
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.
I don't like the idea of adding another parameter to this function as it's already pretty complex. Maybe it would be good to split it to get rid of so many parameters. But currently I did it according to existing style
Closing this PR as there's a better approach: #34541 |
Added reverse Date selection.
Previous Behavior
Selection was possible only in one direction
New Behavior
Added
reverse
param for negative date range selectionRelated Issue(s)
#28961