-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
fix: Datetime popover issues #11621
fix: Datetime popover issues #11621
Conversation
@rusackas Can you take a look? What do you think about using |
Codecov Report
@@ Coverage Diff @@
## master #11621 +/- ##
=======================================
Coverage 62.26% 62.26%
=======================================
Files 873 873
Lines 42238 42238
Branches 3959 3959
=======================================
Hits 26301 26301
Misses 15757 15757
Partials 180 180
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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! Thanks for the quick fix.
(cherry picked from commit 0c6aeef)
SUMMARY
Fixes issues described in #11609 and #11601.
I fixed the overflowing calendar issue by overriding tabs overflow styles in the popover. I don't think it's a perfect solution, because if the content of the tab changes to something that would actually require overflow, we'll need to do some workarounds.
I tried to render the calendar in a Portal (using
renderView
prop), outside of nodes withoverflow: hidden
, but react-datetime doesn't work well with portals - the calendar view relies on its parent's css class, so we can't mount it in a different place.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before: see linked issues
After:
TEST PLAN
ADDITIONAL INFORMATION
CC: @junlincc, @graceguo-supercat, @mistercrunch