-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[5.1] Dialog scrolling #43076
Comments
No. Does the dialog scrolls or moves when you scroll the page? No, then no point 😉 |
@Fedik No, but when scrolling has reached the bottom within the dialog, it starts scrolling the main page. This is because the main page is still scrollable. Body scrolling is disabled when modals are opened, with all major frameworks. Native HTML dialogs don't do this by default because because they have poor usability and accessibility. Please read through the comments here: https://github.com/whatwg/html/issues/7732.....specifically this one: whatwg/html#7732 (comment) |
I do not see it as an issue, maybe minor.
With jumpy page, it does not make the accessibility better isn't it?
From the linked post. I would keep native browser behavior here. |
hm, maybe if it would be possible to prevent scroll event on parent window, then it would be possible, to mitigate it somehow. |
|
Just 'bumping' this one here. Been rewriting a lot of BS modals into the new dialogs. When you have a long page with a lot of links to dialogs, then this is actually a user interface 'issue'. When scrolling the dialog is at the bottom, the background automatically starts scrolling: when closing the dialog the user is 'lost' as that is not where he started / clicked the link to open the dialog: he needs to scroll back to find where he left off. The old (and yes I am aware of the phrase that in the past everything was better :)) BS modals didn't have this background scrolling enabled: works IMO better / user friendlier. just my 2cts. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43076. |
Steps to reproduce the issue
In your administrator dashboard, click on the "Add module to your dashboard", which will open a dialog.
When the dialog is open, you are still able to scroll on the main page (behind the dialog).
Expected result
When the dialog is open, I'd expect scrolling to be disabled for the main page.
The text was updated successfully, but these errors were encountered: