-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Card Modal dropdown issue #936
Comments
I have the exact same problem. Thank you for this cristal clear issue with the screenshots, I'm not sure I'd have been able to explain it with such clarity. |
+1 Any js components with overlays (datepicker, multiselect dropdowns, etc.) will just add scroll. Also, I'm missing an option to pin a modal to the top of a page (like bootstrap). If I have something like advanced settings in a model that get toggled via JS, the modal grows in two directions rather than just on the bottom side, because everything is always centered. |
+1 for us as well - a blocking issue for which we'll have to develop a different UX paradigm since this isn't workable. Has anyone found a workaround in the meantime? |
Just add a custom class to your modal root div, seems to do the trick for now with overlay divs .hours-modal {
overflow: visible;
.modal-card-body {
overflow: visible;
}
} |
Revisited this issue when I tried to use an autocomplete component instead of a modal. The overflow: visible works to put the autocomplete dropdown above the footer, but it doesn't go outside of the modal itself. Have I done something wrong, or might this be something else, like perhaps a stacking context problem instead of a CSS issue? |
Try adding the overflow also on the |
Argh, yes, of course - my "Monday brain" must be interfering with my debugging skills. So many nested elements hiding things from us. Thank you! |
@grebebird Your "Monday but actually Tuesday because of the bank holiday brain" haha |
This sovled my problem:
|
This solution doesn't seem to work if the card content has a scrollbar. |
Yes, as @dsbert says, overflow visible works great if you can use it. But if you're in a scroll container, you can't overflow. I guess you have to depend on a JS solution and append-to-body techniques |
I revisited this and have got a working hack which doesn't touch js or clip the bottom of tall modals.
|
This somehow causes Firefox to not scroll at all. Fixed version:
|
Unfortunately, neither @wrabit nor @apauly solution worked for scrollable https://codepen.io/wayneye/pen/ZEyQzOx Totally agree with @grebebird , our project might have to design a different UX paradigm for this scenario: long content wrapped inside a modal with multiple dropdown lists 🙃 . |
Overview of the problem
I've been trying to use a dropdown/autocomplete select within a card modal and rather than the dropdown appearing on top because of the overflow auto on the body it just adds scroll which doesn't seem to work well for UX
This is about the Bulma CSS framework
I'm using Bulma 0.4.4
My browser is: Chrome 59.0.3071.115
Steps to Reproduce
I've setup a codepen to reproduce as when you hover over a dropdown e.g. the new dropdown then it just adds scroll to the body
https://codepen.io/anon/pen/EXJdBx
Expected behaviour
Actual behaviour
I've checked out Bootstraps modal behaviour to see how that works and it looks to actually set the scroll on the whole modal rather than the body of the modal.
Any help or advice would be appreciated.
The text was updated successfully, but these errors were encountered: