Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We should leverage Bootstrap's .modal-open
that prevents the body from scrolling when a modal is open.
When working on this issue, I noticed that current modal implementation doesn't trigger CTools default dismiss behaviors, instead piggybacking on Bootstrap's modal javascript. But contributed modules might depend on CTools close behaviors to trigger side effects. I'm reverting that, making CTools modals independent from Bootstrap modals javascript-wise, but more integrated CSS-wise.
Comments
Comment #2
shadcn CreditAttribution: shadcn commentedReally cool. Tested. Works great.