Closed (works as designed)
Project:
External Link Pop-up
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Mar 2020 at 09:27 UTC
Updated:
9 Mar 2020 at 13:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jamesashok commentedThe following patch updates a 'Prevent background scrolling' setting to all popups as a checkbox.
Comment #3
jamesashok commentedComment #4
dewalt commentedHi jamesashok,
I've investigated the issue. I don't see any needs to configure background scrolling individual per pop-up - in the most cases the same behavior for all pop-ups on the site is used.
The feature could be added to module global settings, but it is not the module area to change global dialog settings for the site. (The module don't define own popup functionality, it uses Drupal.dialog API)
It could be done with separate module or on the theme level. For example `Bootstrap` theme overrides Drupal.dialog, and background is not scrolled as in Bootstrap dialog.
The same could be implemented for all site dialog adding to theme JS the next code:
I admit that it functionality in this module scope could be useful from site building perspective, using contrib theme and having ability to add own JS snippet, but as I said before it is not the module area - I should investigate if other modules/themes allows it.
If no modules implement it - it is good idea for starting some new "Drupal UI tweaks" module.