No Code Attached Yet Information Required bug
avatar C-Lodder
C-Lodder
18 May 2020

Steps to reproduce the issue

  1. Go to your Atum template settings
  2. Enable Monochrome, Highlight Links or High Contrast
  3. Go back to the admin dashboard
  4. Click the Add module to the dashboard button at the bottom

Expected result

Modal shows

Actual result

Modal doesn't show and can no longer scroll

avatar C-Lodder C-Lodder - open - 18 May 2020
avatar joomla-cms-bot joomla-cms-bot - change - 18 May 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 May 2020
avatar C-Lodder C-Lodder - change - 18 May 2020
Title
[4.0] Monochrome breaks "Add module" modal
[4.0] Accessibility settings break "Add module" modal
avatar C-Lodder C-Lodder - edited - 18 May 2020
avatar C-Lodder C-Lodder - change - 18 May 2020
The description was changed
avatar C-Lodder C-Lodder - edited - 18 May 2020
avatar C-Lodder C-Lodder - change - 18 May 2020
The description was changed
avatar C-Lodder C-Lodder - edited - 18 May 2020
avatar chmst
chmst - comment - 18 May 2020

Which system environment?
In my environment (Firefox, win10) everything is as expected wen adding new module, scrolling is possible and no errors. screen shot 2020-05-18 at 18 24 04

What's wrong: There is no high contrast but this is not in scope here.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29131.

avatar C-Lodder
C-Lodder - comment - 18 May 2020

Win 10, FF (latest) and Chrome (latest)

avatar C-Lodder
C-Lodder - comment - 18 May 2020

Have you compiled the latest code recently?

avatar chmst chmst - close - 19 May 2020
avatar chmst
chmst - comment - 19 May 2020

Yes. But just noticed that it is not on every dashboard, only on the main dashboard.

avatar chmst chmst - change - 19 May 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-05-19 11:15:47
Closed_By chmst
avatar chmst chmst - change - 19 May 2020
Status Closed New
Closed_Date 2020-05-19 11:15:47
Closed_By chmst
avatar chmst chmst - reopen - 19 May 2020
avatar chmst
chmst - comment - 19 May 2020

pardon, it was not indended to close this

avatar ghost
ghost - comment - 23 Sep 2020

Issue confirmed.

Go to Home Dashboard, where you have to scroll down to reach Add module to the dashboard and click:

Screen Shot 2020-09-23 at 12 34 28

Click on a module:

Screen Shot 2020-09-23 at 12 34 50

Unable to scroll in the Modal up.

avatar brianteeman
brianteeman - comment - 8 Aug 2021

Not sure when but this appears to have been fixed now. I cannot replicate the scroll issue.

module

avatar Quy Quy - change - 29 Aug 2021
Labels Added: No Code Attached Yet Information Required
Removed: ?
avatar Quy Quy - labeled - 29 Aug 2021
avatar Quy Quy - change - 19 Nov 2021
Labels Added: bug
avatar Quy Quy - labeled - 19 Nov 2021
avatar Quy
Quy - comment - 19 Nov 2021

Reproducible in Chrome.

avatar Quy Quy - change - 19 Nov 2021
Labels Removed: Information Required
avatar Quy Quy - unlabeled - 19 Nov 2021
avatar C-Lodder
C-Lodder - comment - 19 Apr 2023

If the a11y classes (https://github.com/joomla/joomla-cms/blob/4.3-dev/administrator/templates/atum/index.php#L98) are added to the <html> tag rather than <body>, it fixes the issue.

avatar jonaskuske
jonaskuske - comment - 3 May 2023

The problem:
Modals use fixed positioning with height: 100% so that they are as tall as the screen. The height of a fixed element is relative to its containing block, which by default is <html>. So normally, the modal is as tall as <html>, meaning as tall as the visual viewport. However, some properties such as transform make an element act as a containing block for fixed elements. A CSS filter shouldn't do this, but due to a bunch of browser bugs, filter and other properties that cause a new composite layer also turn elements into containing blocks for fixed elements: w3c/csswg-drafts#400

When filter is set on body through an a11y class, suddenly <body> is the containing block for the fixed modal. The modal is not as tall as the viewport anymore but as tall as the scrollable area, since 100% refers to the body now. On pages that are scrollable, meaning <body> has a greater height than <html>, the modal container will be too tall and the modal positioned off screen.

Applying the a11y classes to <html> fixes the problem as @C-Lodder mentioned, since now it is always <html> that acts as modals' containing block, no matter if a filter is active or not.

avatar Quy
Quy - comment - 18 Mar 2024

@C-Lodder I can no longer reproduce now that modals have being replaced with dialogs. Please confirm. Thanks.

avatar Quy Quy - change - 18 Mar 2024
Labels Added: Information Required
avatar Quy Quy - labeled - 18 Mar 2024
avatar C-Lodder C-Lodder - change - 18 Mar 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-03-18 05:09:17
Closed_By C-Lodder
avatar C-Lodder C-Lodder - close - 18 Mar 2024
avatar C-Lodder
C-Lodder - comment - 18 Mar 2024

@Quy Cannot replicate in 4.x or 5.1 any longer. Closing

Add a Comment

Login with GitHub to post a comment