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

Bug with Modal Components - Height is 32px even when not visible, and within portal #7263

Open
1 of 2 tasks
Shadowfita opened this issue Dec 14, 2024 · 2 comments
Open
1 of 2 tasks
Labels
Needs reproduction Issues without reproduction, closed within a week if the reproduction is not provided

Comments

@Shadowfita
Copy link
Contributor

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

7.15.1

What package has an issue?

@mantine/core

What framework do you use?

Next.js

In which browsers you can reproduce the issue?

Chrome

Describe the bug

The modal component from mantine/core has a height of 32px even when not visible, or mounted, even when in portal. Seems to apply padding, and keepmounted is ignored. Display is never updated to none.

If possible, include a link to a codesandbox with a minimal reproduction

No response

Possible fix

No response

Self-service

  • I would be willing to implement a fix for this issue
@rtivital
Copy link
Member

I do not understand the issue, provide a sandbox with a minimal reproduction and more detailed explanation.

@rtivital rtivital added the Needs reproduction Issues without reproduction, closed within a week if the reproduction is not provided label Dec 14, 2024
@ShahmBarmada
Copy link

remove styling attributes from "root" element of the modal components and apply them to "content" element
https://mantine.dev/core/modal/?t=styles-api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs reproduction Issues without reproduction, closed within a week if the reproduction is not provided
Projects
None yet
Development

No branches or pull requests

3 participants