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

The Datepicker Popup Flows "Off Screen" #178

Closed
dkt2 opened this issue Dec 15, 2023 · 2 comments
Closed

The Datepicker Popup Flows "Off Screen" #178

dkt2 opened this issue Dec 15, 2023 · 2 comments
Assignees
Labels
auro-datepicker not-reviewed Issue has not been reviewed by Auro team members Type: Bug Bug or Bug fixes

Comments

@dkt2
Copy link

dkt2 commented Dec 15, 2023

Describe the bug

For my application, the the popup/popover flows in such a way that it gets occluded by another element. The banner that is hiding the top portion of the datepicker is position: fixed.

Is there a way to either adjust the z-index of the popup or specify a default direction to the popup flow?

Screenshot 2023-12-15 at 12 02 07 PM

To Reproduce

Steps to reproduce the behavior:

  1. Have element with position: fixed
  2. Position Datepicker in such a way that the popup flows into the position: fixed element and is occluded by it

Expected behavior

For the popover to not be occluded.

Screenshots

Please reference the screenshots above.

Desktop (please complete the following information):

  • OS: MacOS Apple M1 Pro
  • Browser Chrome
  • Version Version 119.0.6045.123 (Official Build) (arm64)
@dkt2 dkt2 added auro-datepicker not-reviewed Issue has not been reviewed by Auro team members Type: Bug Bug or Bug fixes labels Dec 15, 2023
@blackfalcon
Copy link
Member

Hi @dkt2 -

The layering of the auro-popover component drives the layering of the calendar. That calendar UI is injected into the <slot> as content for that element.

--auro-depth-tooltip: 300

:host([data-show]) {
  .popover {
    z-index: var(--auro-depth-tooltip);
    background-color: var(--auro-color-background-lightest);
  }
}

Ideally, I would think that if your header is below that 300 z-index, you should see the results you are looking for.

@dkt2
Copy link
Author

dkt2 commented Dec 28, 2023

@blackfalcon thank you! Adjusting my header to below z-index: 300 fixed the issue

@dkt2 dkt2 closed this as completed Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auro-datepicker not-reviewed Issue has not been reviewed by Auro team members Type: Bug Bug or Bug fixes
Projects
None yet
Development

No branches or pull requests

3 participants