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

Ix-modal stays on top of scrollable page #1668

Closed
2 tasks done
JakubRigoci opened this issue Jan 28, 2025 · 1 comment
Closed
2 tasks done

Ix-modal stays on top of scrollable page #1668

JakubRigoci opened this issue Jan 28, 2025 · 1 comment
Labels
triage We discuss this topic in our internal weekly wait for response Wait for author response

Comments

@JakubRigoci
Copy link

Prerequisites

  • I have read the Contributing Guidelines.
  • I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.

What happened?

When we have a scrollable page and a button trigerring modal on the bottom so the user has to scroll to access it, the trigerred modal appears on top of the page out of the user screen. Any workaround?

What type of frontend framework are you seeing the problem on?

Angular

Which version of iX do you use?

v2.6.0

Code to produce this issue.

https://stackblitz.com/edit/btyht4s4?file=src%2Fmodal-by-template.ts
@JakubRigoci JakubRigoci added the triage We discuss this topic in our internal weekly label Jan 28, 2025
@danielleroux
Copy link
Collaborator

Modal gets placed as toplayer on body. You can avoid this by placing a container around your application which handle the overflow or limit the body to fit the view height:

container:

<div
  style="
  position: relative;
  display: block;
  height: 100vh;
  width: 100vw;
  overflow: auto;
"
>
  <app-example></app-example>
</div>

body:

body {
  position: relative;
  display: block;
  height: 100vh;
  width: 100vw;
  overflow: auto;
}

@danielleroux danielleroux added the wait for response Wait for author response label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage We discuss this topic in our internal weekly wait for response Wait for author response
Projects
None yet
Development

No branches or pull requests

3 participants