Skip to content
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

[datetime2] fix(DRP3): show both timepickers for single month #6445

Merged
merged 5 commits into from
Oct 12, 2023

Conversation

rmatan
Copy link
Contributor

@rmatan rmatan commented Oct 6, 2023

Fixes #5675

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

When showing timepickers with a DateRangePicker3, show both timepickers even if only a single month is showing, so that the user can edit both the start and end time. Previously, only one TimePicker was shown so only the start time could be edited. If useAmPm is on, or the timePrecision is any longer than minutes, stack the TimePickers on top of each other instead of stretching the width.

Reviewers should focus on:

Fairly simple change, reviewers should ensure styling looks good with different length time pickers.

Screenshot

Screenshot 2023-10-06 at 3 45 47 PM Screenshot 2023-10-06 at 3 34 48 PM

@rmatan rmatan force-pushed the rm/single-month-timepickers branch from 6631c5d to c872a01 Compare October 6, 2023 20:51
@rmatan rmatan force-pushed the rm/single-month-timepickers branch from c872a01 to 7af61d2 Compare October 6, 2023 20:52
@adidahiya
Copy link
Contributor

always show both timepickers; add stacked styling

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@adidahiya adidahiya self-requested a review October 9, 2023 13:52
@adidahiya adidahiya changed the title always show both timepickers; add stacked styling [datetime2] fix(DateRangePicker3): show both timepickers for single month Oct 9, 2023
@adidahiya adidahiya changed the title [datetime2] fix(DateRangePicker3): show both timepickers for single month [datetime2] fix(DRP3): show both timepickers for single month Oct 9, 2023
Copy link
Contributor

@adidahiya adidahiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DateRangePicker3 looks pretty good in docs preview with various time precisions:

image

however, it looks like the styles did not successfully get applied to DateRangeInput3:

image

@adidahiya
Copy link
Contributor

fix/improve docs examples

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@rmatan rmatan merged commit 8598db4 into develop Oct 12, 2023
12 checks passed
@rmatan rmatan deleted the rm/single-month-timepickers branch October 12, 2023 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

End date time picker not accessible when selecting between small date ranges
2 participants