-
-
Notifications
You must be signed in to change notification settings - Fork 430
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
Modal backdrop does not cover full screen when viewport size is small #520
Comments
The bug is caused by the core flowbite found at this link: https://github.com/themesberg/flowbite/blob/e8c6490bd1893f467f347c41dc5147e6648b9dcb/plugin.js#L455. |
Well, we basically don't use any flowbite core javascript in the react-flowbite... So... |
Hey peeps, We use that to enable vertical scroll when the body content of the modal exceeds the viewport of a smaller device - it's probably not the best solution and we'll revisit this when overhauling the modal component with more options and animations. Here's an example without the As you can see, we add this to make sure that the modal takes up the height of the viewport minus I believe we will find a better solution when we'll update the modal component. Cheers, |
@zoltanszogyenyi let me know when if got fixed at the flowbite core, so we can apply the fix here as well. :) |
Hey @rluders @tulup-conner, I've checked the behaviour of the modal on Flowbite React and we might have to generate a
The gap is there because the modal might have more content inside of it so we want to enable scroll on mobile devices so the users can navigate through all of the content available inside of the modal. We also have the This is probably the best solution especially if we're going to allow users to close the modal when clicking outside of the modal, I believe that the backdrop should be a separate HTML tag and it shouldn't be the modal itself, unless there are valid accessibility issues though I couldn't think of one. Check out what happens with the DOM for the core modal component from Flowbite - one thing we should be wary of is that we only allow one backdrop at a time, meaning we have to prevent them stacking up. For example, if you have a "wizard" to switch from one modal to another these backdrops shouldn't stack up since the background will get darker and darker and eventually it'll be stuck until a refresh is hit. Cheers, |
Describe the bug
Modal backdrop does not cover full screen when viewport size is small
To Reproduce
Steps to reproduce the behavior:
Expected behaviour
Backdrop should always cover full screen
Screenshots
The text was updated successfully, but these errors were encountered: