-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Chore: Replace rc-time-picker
with rc-picker
#99022
Conversation
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.
nice, thanks for looking, i can tweak these. what do you mean by
don't really understand it from the screenshot 🤔 |
should be all fixed @Clarity-89 👍 |
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.
Great work! 👏
There's a layout shift when scrollbar appears, but not sure how easy that is to fix.
you able to share a video of that behaviour? 🙏 |
Screen.Recording.2025-01-16.at.14.42.30.mov |
fixed that as well, thanks 👍 |
* replace rc-time-picker with rc-picker * remove unnecessary stack * remove TimePickerInput * make props stricter * fix type assertions * remove outdated comment * fix types * fix clear icon * fix styling * fix z-index and 6 tests * fix remaining unit tests * betterer results * styling tweaks * don't show/hide scrollbars on hover
What is this feature?
rc-time-picker
and replaces with the maintained (and compatible with react 19)rc-picker
rcTimePicker
stylesTimeOfDayPicker
to userc-picker
allowEmpty
andplaceholder
allowEmpty
is specified, you're given the correct format foronChange
TimePickerInput
componentTimeOfDayPicker
that we expose in@grafana/ui
allowEmpty
/placeholder
props) intoTimeOfDayPicker
TimeRegionEditor
to useTimeOfDayPicker
to reduce repetitionDateTimePicker
to work with the new componentWhy do we need this feature?
Who is this feature for?
Which issue(s) does this PR fix?:
Fixes #97915
Special notes for your reviewer:
Please check that: