Core modals are an ongoing problem for years, damaging the author experience alot.
Completely weird JS resizing behavior, so the modal and its contents are moved around, the form actions too. This drives every author nuts.
Till the core issue is fixed, we should quickfix this by overriding position and dimensions with CSS !important. Fixed, instead of absolute positioning, etc.
See the various core issues: https://www.drupal.org/project/issues/drupal?text=modal
https://www.drupal.org/project/drupal/issues/2158943#comment-14644901
https://www.drupal.org/project/drupal/issues/2707291
This comment is very helpful about the Core dialogs Javascript callbacks/actions: https://www.drupal.org/project/drupal/issues/2158943#comment-13248532
Comments
Comment #2
thomas.frobieterIt seems these couple of lines fix the whole thing pretty well:
I'll cleanly apply this later.. unable to compile the SCSS currently..
Comment #5
thomas.frobieterSO, this seems to be nearly perfect now. I'll create the release!
I've added a JS file to set body classes on modal open & close, so we are also able to block the damn body scrolling in the background.
Comment #6
thomas.frobieterComment #7
thomas.frobieterComment #8
thomas.frobieterComment #9
thomas.frobieterComment #10
thomas.frobieter