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

fix(popover-container): prevent DatePicker from rendering behind the popover #7155

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nuria1110
Copy link
Contributor

fix #7137

Proposed behaviour

date-picker renders above a PopoverContainer's popover.

image

Current behaviour

date-picker renders behind a PopoverContainer's popover.

image

Checklist

  • Commits follow our style guide
  • Related issues linked in commit messages if required
  • Screenshots are included in the PR if useful
  • All themes are supported if required
  • Unit tests added or updated if required
  • Playwright automation tests added or updated if required
  • Storybook added or updated if required
  • Translations added or updated (including creating or amending translation keys table in storybook) if required
  • Typescript d.ts file added or updated if required
  • Related docs have been updated if required

QA

  • Tested in provided StackBlitz sandbox/Storybook
  • Add new Playwright test coverage if required
  • Carbon implementation matches Design System/designs
  • UI Tests GitHub check reviewed if required

Additional context

Testing instructions

  • Manual testing needed to check regressions when using other popups/modals with these components.

…popover

Fixes issue where a Date input's date-picker popup would render behind a PopoverContainer's popup.

fix #7137
@@ -32,7 +32,7 @@ const PopoverContainerContentStyle = styled.div<PopoverContainerContentStyleProp
box-shadow: var(--boxShadow100);
min-width: 300px;
position: absolute;
z-index: ${({ theme }) => theme.zIndex.popover};
z-index: 2000;
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion(non-blocking): Given the theme already contains a zIndex value for popover, is it not worth updating that instead and leaving this as it was? Absolutely fine as it is, BTW - just a passing thought.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm hesitant to change the theme value since its being used elsewhere, could consider only changing the date-picker popup to match this one instead of updating both, happy to see what the other reviewers thinks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

[Popover Container] covers Daterange calendar visibility
2 participants