Fix: Calendar remains open when Year page is opened, unable to choose year#78273
Conversation
- Introduced `shouldDisplayUnderSidePanel` prop in `BaseModal`, `Popover`, and `PopoverWithoutOverlay` components to control display behavior under side panels. - Updated relevant types and styles to accommodate the new prop. - Added a new z-index variable for popovers displayed under side panels.
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
| position: 'absolute', | ||
| alignItems: 'center', | ||
| justifyContent: 'flex-end', | ||
| zIndex: shouldDisplayBelowModals ? variables.modalLowestZIndex : variables.popoverZIndex, |
There was a problem hiding this comment.
Staging regression test is already complete.
As the PR will be CP'ed to staging, let's make sure that this change doesn't cause any other regressions before reaching production.
There was a problem hiding this comment.
It should only affect components that use shouldDisplayBelowModals prop set to true, for now that's only CalenderPicker! I agree we should double check it doesn't cause any further regressions
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
…ption for shouldDisplayBelowModals
|
@aimane-chnaif Should I do the checklist here? |
Ah good match since you're also involved in original PR. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.movAndroid: mWeb Chromemchrome.moviOS: HybridAppios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.mov |
|
@chiragsalian All yours! Keep in mind this is a deploy blocker, so would be nice if you could look into it today 🌸 |
…ker-z-index Fix: Calendar remains open when Year page is opened, unable to choose year (cherry picked from commit 09834a6) (cherry-picked to staging by chiragsalian)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/chiragsalian in version: 9.2.85-6 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.85-7 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/chiragsalian in version: 9.2.86-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.86-4 🚀
|
|
@blazejkustra i'm just resolving merge conflicts in another PR and was wondering whether one of your changes were intended or if there's an error: In Is this intended or should we have passed In any case, we should probably refactor this style utility to take an options array instead of all of those individual parameters, to make it more readable and less confusing |
|
In #57181 i refactored this style util function like i described |
Explanation of Change
Fixes calendar being displayed on top of the year picker screen. This PR introduces new z-index specifically for this case.
Fixed Issues
$ #78192
PROPOSAL: N/A
Tests
Expected Result:
Year page is opened on top of calendar
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
MacOS: Chrome / Safari
Screen.Recording.2025-12-22.at.11.58.26.mov